java-tutorials/spring-cloud/spring-cloud-aws
Ger Roza ea06f79651 Fixed Integration Tests for spring-cloud submodules:
* spring-cloud-archaius/basic-config
* spring-cloud-aws
* spring-cloud-bootstrap projects
2019-04-20 12:48:49 -03:00
..
src Fixed Integration Tests for spring-cloud submodules: 2019-04-20 12:48:49 -03:00
.attach_pid23938 add readmes, remove extra modules 2018-12-16 16:25:49 +02:00
README.md Fixed Integration Tests for spring-cloud submodules: 2019-04-20 12:48:49 -03:00
pom.xml [BAEL-12091] - Fix formatting of POMs 2019-02-10 01:47:19 +05:30

README.md

Spring Cloud AWS

Relevant Articles

Running the Integration Tests

To run the Live Tests, we need to have an AWS account and have API keys generated for programmatic access. Edit the application.properties file to add the following properties:

cloud.aws.credentials.accessKey=YourAccessKey
cloud.aws.credentials.secretKey=YourSecretKey
cloud.aws.region.static=us-east-1

To test automatic DataSource creation from RDS instance, we also need to create an RDS instance in the AWS account. Let's say that the RDS instance is called spring-cloud-test-db having the master password se3retpass, then we need to write the following in application.properties:

cloud.aws.rds.spring-cloud-test-db
cloud.aws.rds.spring-cloud-test-db.password=se3retpass

Multiple application classes are available under this project. To launch InstanceProfileAwsApplication application, replace start-class under pom.xml:

<start-class>com.baeldung.spring.cloud.aws.InstanceProfileAwsApplication</start-class>