Skip to content

Files

Latest commit

1e43bed · Dec 3, 2024

History

History
Cannot retrieve ahead/behind information for this branch.

Folders and files

NameName
Last commit message
Last commit date
Nov 28, 2024
Aug 22, 2024
Dec 3, 2024
Aug 22, 2024
Aug 7, 2022
Dec 2, 2024
Oct 11, 2024
Apr 26, 2021
Sep 17, 2024
Jan 15, 2024
Mar 1, 2022
Oct 11, 2024
Dec 2, 2024

CDK Playground

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.

Developing

The CDK stack is defined in the cdk directory.

There are a couple of helpful scripts in the script directory:

  1. ./script/start-play to run the Play app
  2. ./script/start-cdk to start Jest in watch mode, to test the CDK stack
  3. ./script/build-cdk to synthesise the CDK stack into a template
  4. ./script/switch-cdk to install GuCDK from a GitHub branch. This is useful to test changes without publishing to NPM first.
  5. ./script/scale-out to simulate a scale out event, increasing the capacity of the autoscaling group
  6. ./script/scale-in to simulate a scale in event, decreasing the capacity of the autoscaling group

Deploying

The app is set up in the usual way, with CI on each branch (via GitHub Actions) and CD on main.