Skip to content

Commit 9bda2ee

Browse files
committed
next layer version
1 parent 48d62d1 commit 9bda2ee

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

example/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resources:
1616
Layers:
1717
# the layer contains the deployment code
1818
# so the function "source" can just contain the web assets
19-
- arn:aws:lambda:us-east-1:145266761615:layer:test-s3-deployment:18
19+
- arn:aws:lambda:us-east-1:145266761615:layer:s3-deployment:5
2020

2121
# point to directory with the assets so cloudformation can
2222
# package and upload them

src/deployer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ def apply_substitutions(substitutions, temp_dir):
112112
subprocess.run(['cp', '-r', os.getcwd(), temp_dir])
113113

114114
for full_path in pathlib.Path(temp_dir).glob(file_pattern):
115-
print('substituting in ', full_path)
116115
replace_with_command = lambda key: 's/\\${%s}/%s/g'% (sed_escape(key), sed_escape(values[key]))
117116
replacements = list(map(replace_with_command, values.keys()))
118117
sed_script = ';'.join(replacements)
119-
print('sed script', sed_script)
120118
subprocess.run(['sed', sed_script, '-i', str(full_path)], cwd=tempfile.gettempdir(), check=True)
121119

122120
def sed_escape(text):

0 commit comments

Comments
 (0)