This repo uses the AWS CDK to deploy a base strapi project.
proccess.env[variable];
- REGION: region of the aws account target
- SECRET_ARN: For an added level of security, you must create a secret value in AWS secrets manager for the strapi database creds
- CDK_DEFAULT_REGION: region that the cli of the cdk is set too
- CDK_DEFAULT_Account=target aws account number
Useful commands
-
npm run build
compile typescript to js -
npm run watch
watch for changes and compile -
npm run test
perform the jest unit tests -
cdk deploy
deploy this stack to your default AWS account/region -
cdk diff
compare deployed stack with current state -
cdk synth
emits the synthesized CloudFormation template