Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.300046.0 doesn't work on ECS Fargate #1343

Open
rchanbg opened this issue Sep 10, 2024 · 1 comment
Open

v1.300046.0 doesn't work on ECS Fargate #1343

rchanbg opened this issue Sep 10, 2024 · 1 comment

Comments

@rchanbg
Copy link

rchanbg commented Sep 10, 2024

Describe the bug
Latest version v1.300046.0 doesn't work on ECS Fargate. The following error is presented:
2024-09-10T16:45:28Z W!

{
    "caller": "entitystore/ec2Info.go:64",
    "msg": "Failed to get Instance Id through metadata provider",
    "kind": "extension",
    "name": "entitystore",
    "error": "EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/dynamic/instance-identity/document\": dial tcp 169.254.169.254:80: connect: invalid argument"
}

caused by: Put "http://169.254.169.254/latest/api/token": dial tcp 169.254.169.254:80: connect: invalid argumentD! should retry true for imds error : RequestError: send request failed

Steps to reproduce
Running the cloudwatch agent as a sidecar container in ECS Fargate

What did you expect to see?
No error related to imds

What did you see instead?
imds errors

What version did you use?
v1.300046.0

What config did you use?
Default config

Environment
ECS Fargate

Additional context
Previous version 1.300045.1 works fine.

@jefchien
Copy link
Contributor

v1.300046.0 makes additional calls to IMDS to get instance information using the AWS SDK, but should not have issues getting the token. We recommend using v1.300045.1 and have updated the latest tag to point to that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants