cloudify
cloudify

Reputation: 95

Retrieve AWS SM secrets and export to container environment variable

Can anyone suggest what's the best way to retrieve AWS secrets-manager secrets from Dockerfile and send the secret values to Docker container as environment variables after Docker ran.

The reason behind why I am asking this, I am trying to remove all sensitive password information hard coded in different places of git code repository and move the passwords to AWS secrets-manager.

Upvotes: 1

Views: 3779

Answers (2)

Sergey
Sergey

Reputation: 361

https://github.com/s12v/secure-exec is a similar tool, which supports the Secrets Manager (including JSON).

As mentioned above, with ECS there's no need in such tools.

Upvotes: 1

bwest
bwest

Reputation: 9854

Take a look at ssm-env, which populates ENV vars from Parameter Store. There is an example of using it with Docker.

If you are using ECS, there is built-in support for this.

Upvotes: 0

Related Questions