aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.
MIT No Attribution
672 stars 683 forks source link

Pass through AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION #377

Open karth295 opened 4 months ago

karth295 commented 4 months ago

Problem statement

Previously, you would have to bake AWS credentials into the container to be able to authenticate with AWS services such as S3. This is insecure and involves changing the container build process.

Proposed solution

Pass through the following environment variables, which are commonly used for authenticating with AWS APIs via AWS libraries such as boto3 or the AWS CLI: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION.

  1. Pass through the variables in docker-compose-local.yaml
  2. Update README.md to document this change

Misc

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.