environment variable

I'm running an ECS Fargate Task.

This is my Entrypoint script in the Dockerfile

startapplication.sh :

#!/bin/bash set -e java -jar test.jar --spring.profiles.active=${envparam} 

Then I go to AWS ECS Fargate web console > Task Definition > Container definition > declare environment variable "envparam" and value "dev" there.

But ${envparam} is not resolving in shell script when container launches. What is the issue ?

submitted by /u/anacondaonline
[link] [comments]
Source: Reddit