aws-refapp | Refernce app | Web Services library
kandi X-RAY | aws-refapp Summary
kandi X-RAY | aws-refapp Summary
Refernce app for spring-cloud-aws
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Store the person in the database
- Gets the lifecycle last name
- Get the first name
- Register websocket handlers
- The SsMessageWebSocketHandler is used for sending incoming messages
- The SnsSocketHandler is used for sending text messages
- Sends a notification
- Gets the subject
- Gets the message
- Receive notification
- Broadcasts the message to all the sessions
- Send a message to all sessions
- Gets cached value
- Calculates a value based on a key
- Get source file
- Returns the content without the license block
- List of people
- Confirm subscription
- Create a new person
- Add custom mappings to the given container
- The main entry point
- Send message to SQS queue
- Set up the tomcat data source
- Query the list of people from the database
- Receive a message from SQS
- Invoked after a websocket connection is established
aws-refapp Key Features
aws-refapp Examples and Code Snippets
Community Discussions
Trending Discussions on aws-refapp
QUESTION
I need to run Spring Boot based app locally. It uses spring-cloud-starter-aws dependency.
The problem is that it tries to connect to EC2 metadata service always. Setting "cloud.aws.*" properties doesn't help.
I expect that default AWS credentials chain will be used, credentials and region will be read from one of AWS preferred way (e.g. ~/.aws/config and ~/.aws/credentials files).
I tried to set cloud.aws.credentials.useDefaultAwsCredentialsChain property but spring-cloud-starter-aws doesn't care
I found examples that use CloudFormation stack for very strange reason to run the app locally.
When I use AWS SDK for Java default AWS chain is used without any issues - I don't need to do anything specific for local running of the application (locally it reads credentials from files and on EC2 it uses instance metadata service). But with Spring Boot it doesn't work out of the box and I need to enable local running somehow.
I use 2.2.2.RELEASE version of Spring Boot and 2.2.1.RELEASE version of Spring Cloud. I have a feeling they introduced regression, because in previous versions it worked without problems.
Any ideas how to run the app locally?
...ANSWER
Answered 2020-Apr-01 at 12:31Adding the following lines to configuration helps:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-refapp
You can use aws-refapp like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the aws-refapp component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page