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

AWS_EC2_METADATA_DISABLED_SYSTEM_PROPERTY is ignored #530

Open
pexa-tnilsen opened this issue Sep 5, 2023 · 2 comments
Open

AWS_EC2_METADATA_DISABLED_SYSTEM_PROPERTY is ignored #530

pexa-tnilsen opened this issue Sep 5, 2023 · 2 comments

Comments

@pexa-tnilsen
Copy link

pexa-tnilsen commented Sep 5, 2023

In com.amazonaws:amazon-kinesis-producer:0.15.7

the library triggers EC2MetadataClient calls:

[warning] AWS Log: ERRORCan not retrieve resource from http://169.254.169.254/latest/api/token
[warning] AWS Log: ERRORCan not retrieve resource from http://169.254.169.254/latest/meta-data/iam/security-credentials
etc

My machine prevents these calls from being made. So I am trying to set AWS_EC2_METADATA_DISABLED_SYSTEM_PROPERTY which is supported by the com.amazonaws:aws-java-sdk-core:1.12.472 library. But the producer still show the above errors.

@pexa-tnilsen pexa-tnilsen changed the title EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY is ignored AWS_EC2_METADATA_DISABLED_SYSTEM_PROPERTY is ignored Sep 5, 2023
@tmkz8
Copy link

tmkz8 commented Oct 19, 2023

Hi, did you solve this?
Having the same warnings at startup running on Kuberenetes when using STSAssumeRoleSessionCredentialsProvider as credential provider.

@madorb
Copy link

madorb commented Dec 12, 2023

seeing the same when starting our app on EKS

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

3 participants