Looks like the metadata reader Python script is not supporting the way credentials are retrieved when running as a Docker container on a ECS cluster.
I just checked /src/cloudwatch/modules/configuration/metadatareader.py and found out it's using "latest/meta-data/iam/security-credentials/" instead of ENV variable $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.
Plus, it's using a different metadata server. It should use 169.254.170.2.
Looks like the metadata reader Python script is not supporting the way credentials are retrieved when running as a Docker container on a ECS cluster.
I just checked /src/cloudwatch/modules/configuration/metadatareader.py and found out it's using "latest/meta-data/iam/security-credentials/" instead of ENV variable $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.
Plus, it's using a different metadata server. It should use 169.254.170.2.
Any plans to support ECS tasks?