Skip to content

Commit 1f3438e

Browse files
use environement vars for anything in yaml
1 parent e66ad70 commit 1f3438e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ target/
6363
*.iml
6464
# vim swap files
6565
.*.sw?
66+
67+
.vscode/
68+
.venv/

aws_lambda/aws_lambda.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,11 @@ def read_cfg(path_to_config_file, profile_name):
709709
cfg['profile'] = profile_name
710710
elif 'AWS_PROFILE' in os.environ:
711711
cfg['profile'] = os.environ['AWS_PROFILE']
712+
for key, val in cfg.items():
713+
print(key, "=", val)
714+
cfg[key] = get_environment_variable_value(val)
715+
print(key, ':', cfg[key])
716+
712717
return cfg
713718

714719

0 commit comments

Comments
 (0)