Optional: Store Environment Variables in Secrets Manager

If you'd like to, you can provide environment variables to your tines-app and tines-sidekiq task definitions through AWS Secrets Manager. This is not essential, but can be done for improved security. 

First, create a new secret in AWS Secrets Manager for the environment variable using the name of the variable and its value as the key-value pair. Next, in ECS console, navigate to the task definition that will use the environment variable, and create a new revision. Under the Environment variables section, click Add environment variable. For consistency, use the same Key that you used for the secret. The Value type should be ValueFrom , and the Value is the Secret ARN from the Secrets Manager.

You might also be interested in storing your database credentials in the Secrets Manager. See here for information on how to do that.

Was this helpful?