Maciej Walkowiak 2ae9b1b0c4 Upgrade to Spring Cloud Build 4.0 (#610) | 1 éve | |
---|---|---|
.. | ||
infrastructure | 1 éve | |
spring-cloud-aws-dynamodb-sample | 1 éve | |
spring-cloud-aws-parameter-store-sample | 1 éve | |
spring-cloud-aws-s3-sample | 1 éve | |
spring-cloud-aws-secrets-manager-sample | 1 éve | |
spring-cloud-aws-ses-sample | 1 éve | |
spring-cloud-aws-sns-sample | 1 éve | |
spring-cloud-aws-sqs-sample | 1 éve | |
.gitignore | 3 éve | |
.npmignore | 3 éve | |
docker-compose.yml | 1 éve | |
pom.xml | 1 éve | |
readme.md | 2 éve |
Samples are prepared to run on Localstack - a local equivalent of AWS.
To start Localstack locally:
$ docker-compose up
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
Samples are regular Spring Boot applications. The best way to run them is to run the main @SpringBootApplication
annotated class directly from an IDE.
Infrastructure is destroyed once Localstack container shuts down. If you want to destroy infrastructure manually, run:
$ cdklocal destroy
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.