Skip to content
Refernce app for spring-cloud-aws
Java HTML JavaScript CSS
Branch: master
Clone or download
Latest commit 3e6c7f0 Aug 1, 2016

Spring Cloud AWS Reference App

This reference application acts as a showcase for the features provided by [Spring Cloud AWS] Spring-Cloud-AWS.

To check out the project and build it from source, do the following:

git clone
cd aws-refapp
mvn package

Run it on your own AWS environment

If you want to start this application on your own AWS environment you just need to do the following steps:

  • Choose Ireland as region
  • Go to the CloudFormation console.
  • Create a new stack
    • Name the stack "AwsSampleStack".
    • Choose "Upload a template to Amazon S3".
    • Upload the AwsSampleStack.template file (located at the root of this project).
    • When prompted for a parameter value rdsPassword just type a password of your choice with a min length of 8 characters.

The stack needs a while to start (around 15 to 20 minutes). Once it is complete, you can copy the public DNS address of the created EC2 instance and open it in your browser with port 8080. For example

Running the application locally

Please note that you need a running stack on AWS to run it locally!

If you want to play around with the application, you can start it locally on your machine. In order to start the application you have to create a configuration file that configures the necessary parameters to connect to the environment.

Please create a new properties file (for example This file must contain three properties named accessKey,secretKey and rdsPassword. These two properties accessKey and secretKey are account/user specific and should never be shared to anyone. To retrieve these settings you have to open your account inside the AWS console and retrieve them through the [Security Credentials Page] AWS-Security-Credentials.

Note: In general we recommend that you use an [Amazon IAM] Amazon-IAM user instead of the account itself. The last password rdsPassword is used to access the database inside the integration tests. This password has a minimum length of 8 characters.

An example file would look like thisöksjdhöadjs,höalsdhjköalsdjhasd+

Once you created the properties file you can start the application using the following command:

mvn spring-boot:run -Drun.arguments="--spring.config.location=/path/to/your/properties/file,"

Note: There are multiple ways to start a Spring Boot application, please refer to the [Spring Boot documentation] Run-Spring-Boot to see all the possibilities.

You can’t perform that action at this time.