diff --git a/CHANGES.md b/CHANGES.md index 26387d2..98f1b97 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changelog +## 0.8.1 +- Work around for bug in Go AWS SDK to pick up cli credentials, see https://github.com/aws/aws-sdk-go/issues/934 + ## 0.8.0 - Added support for sops encrypted config files, see: https://github.com/mozilla/sops - hide stack parameter output in terminal if `NoEcho` is set diff --git a/cloudbender/__init__.py b/cloudbender/__init__.py index 43027de..103f377 100644 --- a/cloudbender/__init__.py +++ b/cloudbender/__init__.py @@ -2,7 +2,7 @@ import logging __author__ = "Stefan Reimer" __email__ = "stefan@zero-downtimet.net" -__version__ = "0.8.0" +__version__ = "0.8.1" # Set up logging to ``/dev/null`` like a library is supposed to. diff --git a/cloudbender/jinja.py b/cloudbender/jinja.py index e69ba87..b820de7 100644 --- a/cloudbender/jinja.py +++ b/cloudbender/jinja.py @@ -247,7 +247,8 @@ def _sops_loader(path): '--input-type', 'yaml', '--output-type', 'yaml', '--decrypt', '/dev/stdin' - ], stdout=subprocess.PIPE, input=config_raw.encode('utf-8')) + ], stdout=subprocess.PIPE, input=config_raw.encode('utf-8'), + env=dict(os.environ, **{"AWS_SDK_LOAD_CONFIG": "1"})) except FileNotFoundError: logger.exception("SOPS encrypted config {}, but unable to find sops binary! Try eg: https://github.com/mozilla/sops/releases/download/v3.5.0/sops-v3.5.0.linux".format(path)) sys.exit(1)