Koxoma Urfth
Web Developer, Software Engineer, and Project Manager in USA
To make requests to AWS, you need to supply credentials to AWS SDK. This can be done in one of two ways – Supply the credentials explicitly (for example – using Use the Note: the security policies are defined by the role of the ECS task definition.InAny request being sent by the module will use the fetched credentials. NodeJS this process can be simplified, using the aws-sdk moduleWe can then use the AccessKeyId and SecretAccessKey fields to make requests to AWS.For example – HTTP request to 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI returns the following responseWhen the ECS agent creates a container, it sets the environment variable AWS_CONTAINER_CREDENTIALS_RELATIVE_URI inside the container. This environment variable can be used to fetch the credentials over HTTP, using the AWS credentials provider, as documented in aws documentation.AWS credentials provider.environment variables to the Docker container).