-
Notifications
You must be signed in to change notification settings - Fork 815
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
Problem retrieving custom EC2 tags | HTTPError: HTTP Error 404: Not Found #1884
Comments
Hi @nodesocket - I submitted a PR in that area to support multiple AWS regions. I will resubmit an updated one and would like to address this issue. Can you provide a bit more information about your EC2 state?
Thanks. |
1.) Yes, associating IAM roles on some instances, but the instances am seeing the error from no.2.) On the instances I am seeing the error from:
3.)
4.)
|
Any update on this issue? Still seeing these errors.
|
Sorry for the late answer @nodesocket. Datadog agent relies on (among others) http://169.254.169.254/latest/meta-data/iam/info endpoint to retrieve the instance's metadata. If the endpoint is unavailable or if it returns an HTTP error status code, then no EC2 tag is fetched. We've been running some tests, and found that an IAM role assignation is required to be able to use this endpoint. The error message, I reckon, is quite confusing here: we will likely catch this error to display a more comprehensive one in a next version. Is this error disrupting the proper functionning of Datadog agent on your instance ? Thank you |
Thanks for the reply. No the error is not disrupting anything, just noticed it in our logs. Perhaps if the instance does not have a IAM role assigned just return instead of showing the 404 error. |
Thanks for the further details @nodesocket. |
An IAM role associated with the instance is required to retrieve AWS EC2 custom tags. Log a warning when missing, not an exception. Fix #1884
An IAM role associated with the instance is required to retrieve AWS EC2 custom tags. Log a warning when missing, not an exception. Fix #1884
👍 thanks. When will this ship? |
This will be shipped with Datadog Agent 5.7.0 which should be out within two weeks. |
Seeing the following logged for
dd-collector
using the AWS integration.The text was updated successfully, but these errors were encountered: