java-tutorials/spring-cloud/spring-cloud-aws/README.md

33 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Spring Cloud AWS
# Relevant Articles
- [Spring Cloud AWS S3](https://www.baeldung.com/spring-cloud-aws-s3)
- [Spring Cloud AWS EC2](https://www.baeldung.com/spring-cloud-aws-ec2)
- [Spring Cloud AWS RDS](https://www.baeldung.com/spring-cloud-aws-rds)
- [Spring Cloud AWS Messaging Support](https://www.baeldung.com/spring-cloud-aws-messaging)
- [Instance Profile Credentials using Spring Cloud](http://www.baeldung.com/spring-cloud-instance-profiles)
#### 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.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>
```