-
Notifications
You must be signed in to change notification settings - Fork 369
EC2 metadata resolution related exception thrown when running application locally #556
Comments
This is how |
Thanks @giova333. Indeed it's just a log message triggered during
|
@maciejwalkowiak I don't think we will be able to manage that on our side. Aws sdk uses Both classes have a dependency on
This means that whenever developers run our code outside ec2 instances and use some clients such as
I would say that the issue has a global level and as for me the most appropriate way to manage it is to report it to aws sdk saying that the developers should be able to manage such cases themselves, handling the thrown exception, without having the original exception logged. That is what I am going to do. |
… on application startup. Fixes gh-556
… on application startup. Fixes spring-atticgh-556
For me the problem is not just the exception being logged, but the several seconds this adds to my startup time. Is there no way to set a property that will override this so this check doesn't need to be done? Just like |
-> This means that whenever developers run our code outside ec2 instances and use some clients ... without providing the region explicitly... |
@psrmx I understand the sentiment but the underlying issue is in AWS SDK. We will consider changing the way cloud environment is detected (as fetching the metadata is anyway very slow) in Spring Cloud AWS 3.0. |
… on application startup. Fixes spring-atticgh-556
… on application startup. Fixes spring-atticgh-556
… on application startup. Fixes spring-attic#556
… on application startup. Fixes spring-attic#556
So this happens as part of the evaluation of Like so(in kotlin):
|
Or even better, in properties like this:
and have this exclusion only in dev or tests profile but keep them in prod or whatever that runs in AWS However, there might be more uses for |
In 2.3.0 we introduced a property |
Describe the bug
I used
spring-cloud-starter-aws
(version2.2.1.RELEASE
) to send email using Amazon SES. I'm able to send email but I have the following error when starting the app. I'm not dealing with EC2 but it looks like the underlineaws-java-sdk-ses
(version1.11.787
) is trying to load EC2 resources. How can I get rid of this misconfiguration?Sample
The text was updated successfully, but these errors were encountered: