Maciej Walkowiak 2ae9b1b0c4 Upgrade to Spring Cloud Build 4.0 (#610) há 1 ano atrás
..
infrastructure a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-dynamodb-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-parameter-store-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-s3-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-secrets-manager-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-ses-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-sns-sample a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
spring-cloud-aws-sqs-sample 2ae9b1b0c4 Upgrade to Spring Cloud Build 4.0 (#610) há 1 ano atrás
.gitignore 288a32efd4 Parameter Store Sample (#17) há 3 anos atrás
.npmignore 288a32efd4 Parameter Store Sample (#17) há 3 anos atrás
docker-compose.yml 2f6c0bfafa Upgrade Localstack to 1.3.1 (#608) há 1 ano atrás
pom.xml a210b93db5 Set version to 3.0.0-SNAPSHOT (#609) há 1 ano atrás
readme.md 72b2bbd596 Use Localstack and cdklocal in samples. (#381) há 2 anos atrás

readme.md

Spring Cloud AWS Samples

Samples are prepared to run on Localstack - a local equivalent of AWS.

To start Localstack locally:

$ docker-compose up

Infrastructure

Samples use AWS CDK to create the infrastructure components to run the sample. To deploy infrastructure, you need to install CDK and CDK local:

$ npm install -g aws-cdk-local aws-cdk

Then, in infrastructure directory:

$ mvn package
$ cdklocal bootstrap 
$ cdklocal deploy

How to run?

Samples are regular Spring Boot applications. The best way to run them is to run the main @SpringBootApplication annotated class directly from an IDE.

How to destroy infrastructure?

Infrastructure is destroyed once Localstack container shuts down. If you want to destroy infrastructure manually, run:

$ cdklocal destroy

How to run against real AWS?

To run samples against real AWS, update spring.cloud.aws properties in sample's application.properties to reflect your AWS configuration or delete these properties completely to use defaults.