Skip to content

Commit 2623d27

Browse files
authored
Merge pull request #2 from disruptops/feature/envvars
use environement vars for anything in yaml
2 parents e66ad70 + 1d7df6f commit 2623d27

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,9 @@ 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+
cfg[key] = get_environment_variable_value(val)
714+
712715
return cfg
713716

714717

0 commit comments

Comments
 (0)