title: Is there a way to read the parameter store secure variables inside the ECS JSON environment sections based on FARGATE
body: <p>I am setting up ECS Services to launch my application which speaks to the RDS Database server. I need to pass the Database access properties such as username, password, dbname etc to the application codes running in the FARGATE instances. So to pass them i have created these parameters in the parameter store, but i need to find a way to get them from the parameter store and pass it to the ECS task definitons env variable properties?</p>
  
  <p>In the ECS Task definitions, i have tried to modify the JSON file environment property with the parameters such as "name: and "valueFrom", but seems that the "valueFrom:" is not being accepted in the JSON file, it pops out an error saying "Cannot read property 'replace' of undefined"</p>
  
  <pre><code>        "environment": [
              {
                  "name": "POSTGRES_DB",
                  "valueFrom": "PROD_POSTGRES_DB"
              }
          ],
  </code></pre>
  
  <p>I expect that the POSTGRES_DB parameter reads the values from the PROD_POSTGRES_DB defined in parameter store of AWS</p>