4
votes

Is there any to pass parameters from EC2 parameter store as environment variables to an ECS task?

AWS provides us with
1) A way to store parameters, both secret and less secret
2) A way to set environment variables inside ECS tasks
but no way to connect the to - or am I missing something?

Here a solution is described where you wrap the docker image in your own image only to be able to load parameters. If this is the recommended way then I will have to wrap all images from Docker Hub that I could otherwise use as stock images and do nothing beside configure them via environment variables.

I feel like this forces me to take on an unnecessary amount of responsibility for coding, maintaining, storing, etc. of docker images where I would otherwise only have to set environment variables.

1

1 Answers