Spring boot startup error for AWS application : There is not EC2 meta data available

前端 未结 8 1564
遥遥无期
遥遥无期 2021-01-07 16:43

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

相关标签:
8条回答
  • 2021-01-07 17:10

    using the response of @Shubham-Pandey you can add a VM option to run your app locally :

    -Dcloud.aws.region.static=us-east-1

    0 讨论(0)
  • 2021-01-07 17:14

    adding these properties to my application.properties in spring boot proj helped me.

    cloud.aws.region.static=us-west-2
    cloud.aws.region.auto=false
    cloud.aws.stack.auto=false
    
    0 讨论(0)
提交回复
热议问题