AWS setup

AWS Secrets

On container startup, before db start, the script get_aws_secrets.py is run. It uses the AWS_SECRET_NAMES environment variable to get a space separated list of secret names. Each key and value in the secret will be added to the environment on startup. At the start of each secret name set up the prefix to make environment names unique.

Example using the ALLOCATION_ and ORDERS_ prefix:

    AWS_SECRET_NAMES="ALLOCATION_:db/ecs/db_allocation "ORDERS_:db/ecs/db_orders"

This will allow multiple stores to supply unique environment names even if the key names are the same in each secret store.

NOTE: use the REGION_NAME environment variable to set the AWS region.

NOTE: on a connection failure this method is called unless you have set an alternative script using DB_ENVIRONMENT_UPDATER

Setup hooks