Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit a17fe4d

Browse files
Update documentation on how to hide warning message logged by AWS SDK on application startup.
Fixes gh-556
1 parent 0527758 commit a17fe4d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/src/main/asciidoc/spring-cloud-aws.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ use of the modules. A typical XML configuration to use Spring Cloud AWS is outli
108108
</beans>
109109
----
110110

111+
[TIP]
112+
====
113+
On application startup, for its internal purposes Spring Cloud AWS performs a check if application runs in AWS cloud environment
114+
by using `EC2MetadataUtils` class provided by AWS SDK. Starting from version 1.11.678, AWS SDK logs a warning message with exception when this check is made outside of AWS environment.
115+
This warning message can be hidden by setting `ERROR` logging level on `com.amazonaws.util.EC2MetadataUtils` class.
116+
117+
[source,indent=0]
118+
----
119+
logging.level.com.amazonaws.util.EC2MetadataUtils=error
120+
----
121+
====
122+
111123
==== SDK credentials configuration
112124
In order to make calls to the Amazon Web Service the credentials must be configured for the the Amazon SDK. Spring Cloud AWS
113125
provides support to configure an application context specific credentials that are used for _each_ service call for requests done

0 commit comments

Comments
 (0)