I am getting the below error when I am trying to run a Spring boot-AWS application locally :
There is not EC2 meta data available, because the application is
If using application.yml I did it with the following
spring:
application:
name: App Name
autoconfigure:
exclude:
- org.springframework.cloud.aws.autoconfigure.messaging.MessagingAutoConfiguration
- org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration
- org.springframework.cloud.aws.autoconfigure.context.ContextRegionProviderAutoConfiguration