This solution allows the environment variables to be passed to the container when it is launched by
AWS Fargate using Amazon ECS. The task definition is a text file that describes one or more
containers that form an application. It contains various parameters for configuring the containers,
such as CPU and memory requirements, network mode, and environment variables. The
environment parameter is an array of key-value pairs that specify environment variables to pass to a
container. Defining an array that includes the environment variables under the entryPoint parameter
within the task definition will not pass them to the container, but use them as command-line
arguments for overriding the default entry point of a container. Defining an array that includes the
environment variables under the environment or entryPoint parameter within the service definition
will not pass them to the container, but cause an error because these parameters are not valid for a
service definition.
Reference: [Task Definition Parameters], [Environment Variables]