- NodeJS
- Python3
- AWS CLI: https://aws.amazon.com/cli/
- CDK CLI: https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install
- IAM AWS user with AdministratorAccess
You'll need to bootstrap it first:
CDK_NEW_BOOTSTRAP=1 cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
Deploy all stacks with:
cdk deploy --require-approval never --outputs-file cdk.out.json
Deploy specific stack with:
cdk deploy "StackNameHere" --require-approval never --outputs-file cdk.out.json
Destroy all stacks with:
cdk destroy --force
Destroy specific stack with:
cdk destroy "StackNameHere" --force
You can append --verbose
if it's a little too quiet for you.
Note: Currently it's setup to build the stack name from environment variables, so if those variables aren't consistent I'm not sure if it will destroy all stacks properly. You can always visit CloudFormation's Stacks page to manually nuke things.
- PreviewStack : Deploys a docker image from a freshly built
thunderbird.net/
directory onthunderbird-website
repo.
PS_PREVIEW_ENV_ID
: Unique ID for pull request preview environment deploys. Should be formatted like{Branch Name}-{PR Number}
. Defaults tofake-branch-name-400
.PS_SITE_NAME
: Unique site id. All assets/services/vpcs/etc will be prefixed by this. Defaults tothunderbird-website
.PS_NAMESPACE
: For the cluster's cluod map. Defaults tothunderbird.local
.PS_DOCKER_DIRECTORY
: Directory where the docker file is. Defaults to../thunderbird-website
.PS_DOCKER_FILE
: Docker file name. Defaults todeploy.docker
.