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-playto run the Play app./script/start-cdkto start Jest in watch mode, to test the CDK stack./script/build-cdkto synthesise the CDK stack into a template./script/switch-cdkto install GuCDK from a GitHub branch. This is useful to test changes without publishing to NPM first../script/scale-outto simulate a scale out event, increasing the capacity of the autoscaling group./script/scale-into 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.