A simple Scala Play app running in EC2 using infrastructure provided by @guardian/cdk (aka GuCDK).
The purpose of this repository is to offer a "real life" application to test GuCDK on that is isolated from in use production applications.
That is, CDK Playground offers a low risk environment to experiment with.
The CDK stack is defined in the cdk directory.
There are a couple of helpful scripts in the script directory:
./script/start-play
to run the Play app./script/start-cdk
to start Jest in watch mode, to test the CDK stack./script/build-cdk
to synthesise the CDK stack into a template./script/switch-cdk
to install GuCDK from a GitHub branch. This is useful to test changes without publishing to NPM first../script/scale-out
to simulate a scale out event, increasing the capacity of the autoscaling group./script/scale-in
to simulate a scale in event, decreasing the capacity of the autoscaling group
The app is set up in the usual way, with CI on each branch (via GitHub Actions) and CD on main
.