title: Passing EC2 parameter store variables to an ECS task as environment variables
body: <p>Is there any to pass parameters from EC2 parameter store as environment variables to an ECS task?</p>
  
  <p>AWS provides us with<br>
  1) A way to store parameters, both secret and less secret<br>
  2) A way to set environment variables inside ECS tasks<br>
  but no way to connect the to - or am I missing something?</p>
  
  <p><a href="https://www.whaletech.co/2017/08/01/Secure-Credentials-for-ECS-Tasks.html" rel="nofollow noreferrer">Here</a> a solution is described where you wrap the docker image in your own image <em>only</em> 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.  </p>
  
  <p>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.</p>