Skip to content

Using AWS Credentials

Shinwoo Kim edited this page Oct 8, 2025 · 3 revisions
  1. Using AWS Credentials

Using AWS Credentials

The container runs differently when deployed in the cloud - instead of passing the rails env file directly, it fetches one from s3://container-discovery S3 bucket.
Specifically, the container image is assigned the git commit value when the image was built and it fetches rails env file matching the value.
It is sometimes a good idea to run the container in this mode to fully emulate the production mode.

./run.sh -a PATH_TO_AWS_CREDENTIALS_FILE

Certain functionalty can only be tested with the AWS credentials.
One such example is the YAML Alerts - it fetches alert file from S3 bucket and to test this locally, you have to run it in this mode.\

To use a different env file in the S3 bucket than its pre-baked git commit value, you can supply the -v flag.\

./run.sh -a PATH_TO_AWS_CREDENTIALS_FILE -v dev_latest

Above command will fetch s3://container-discovery/container_env_dev_latest instead of its pre-assigned env file.

Clone this wiki locally