Skip to content
Discussion options

You must be logged in to vote

By default, when autoconfiguration is used & instance profile is turned on in application.properties, following credentials provider is configured EC2ContainerCredentialsProviderWrapper (see https://github.com/awspring/spring-cloud-aws/blob/2.3.x/spring-cloud-aws-autoconfigure/src/main/java/io/awspring/cloud/autoconfigure/context/ContextCredentialsAutoConfiguration.java#L104).

So to replicate the behavior from autoconfiguration, use this one instead of InstanceProfileCredentialsProvider.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by NoCigar
Comment options

You must be logged in to vote
1 reply
@maciejwalkowiak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants