Skip to content

ifielder/strapi-aws-cdk

Repository files navigation

strapi-aws-cdk

Goal:

This repo uses the AWS CDK to deploy a base strapi project.

  1. RDS postgresql instance
  2. Fargate Task
  3. Application Load Balancer
  4. Iam Roles

Required environmental variables

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

About

This is a container based deployment using strapis config with rds+postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published