Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowstorm 2.2.0 Startup Error in AWS when no credentials available #34

Closed
kaicode opened this issue Mar 27, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@kaicode
Copy link
Member

kaicode commented Mar 27, 2019

When starting Snowstorm 2.2.0 on an AWS EC2 instance Snowstorm fails to start with the following error:
Caused by: com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain

This only happens if I use an EC2 instance which does not have any credentials set in the environment variables or configured on disk.

@kaicode kaicode self-assigned this Mar 27, 2019
@kaicode
Copy link
Member Author

kaicode commented Mar 27, 2019

Snowstorm uses Spring Cloud libraries which will detect when the application is run in AWS. The libraries expect there to be credentials in the environment which can be used to load resources from S3. If there are no credentials available startup will fail.

This AWS auto configuration behaviour can be disabled using this property in your application.properties file:

spring.autoconfigure.exclude=org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration

Or by setting the same property using a command line argument when starting Snowstorm:

--spring.autoconfigure.exclude=org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration

@kaicode kaicode closed this as completed Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant