Skip to content

Commit 4392ef7

Browse files
committed
Issue: nficano#11, nficano#26 Environment Variables
Added support for updating environment variables using config.yaml settings.
1 parent 4390aeb commit 4392ef7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

aws_lambda/aws_lambda.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ def update_function(cfg, path_to_zip_file):
408408
VpcConfig={
409409
'SubnetIds': cfg.get('subnet_ids', []),
410410
'SecurityGroupIds': cfg.get('security_group_ids', [])
411+
},
412+
Environment={
413+
'Variables': {
414+
key: value
415+
for key, value
416+
in cfg.get('environment_variables').items()
417+
}
411418
}
412419
)
413420

0 commit comments

Comments
 (0)