awslabs / amazon-kinesis-producer

Amazon Kinesis Producer Library
Apache License 2.0
400 stars 331 forks source link

AWS_EC2_METADATA_DISABLED_SYSTEM_PROPERTY is ignored #530

Open pexa-tnilsen opened 1 year ago

pexa-tnilsen commented 1 year ago

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.

tmkz8 commented 1 year ago

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

madorb commented 11 months ago

seeing the same when starting our app on EKS