spring-attic / spring-cloud-aws

All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
https://awspring.io/
Apache License 2.0
590 stars 373 forks source link

Disable ContextInstanceDataAutoConfiguration by default. #730

Closed maciejwalkowiak closed 3 years ago

maciejwalkowiak commented 3 years ago

:loudspeaker: Type of change

:scroll: Description

This change makes ContextInstanceDataAutoConfiguration an opt-in feature - to use it users have to explicitly set the cloud.aws.instance.data.enabled to true.

It is a breaking change.

:bulb: Motivation and Context

ContextInstanceDataAutoConfiguration has a condition to run only in AWS environment. This condition is expensive to run outside of AWS environment and it slows down application startup several seconds.

:green_heart: How did you test it?

Integration tests.

:pencil: Checklist