I am new to AWS Docker and I want to set an environment variable in task definition of ECS and then I want to read it from C# code from docker container. Firstly, is it possible? if yes, how to achieve it?
Below is my task.json file
{
"family": "task-logging-poc",
"containerDefinitions": [
{
"image": "XYZ",
"name": "logging-poc-1",
"cpu": 1024,
"memory": 1024,
"essential": true,
"mountPoints": [
{
"sourceVolume": "log",
"containerPath": "c:/data"
}
]
}
]
}