Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 619 Bytes

Next.js deployment sample using full CDN architecture (with CloudFront/S3/ECS/AWS CDK)

Technologies

  • AWS
  • CloudFront
  • S3
  • ECR
  • ECS
  • AWS CDK

Bootstrap

$ yarn install
$ yarn workspace cdk run cdk bootstrap
$ yarn workspace cdk run cdk deploy VpcStack SecurityGroupStack RepositoryStack
$ ECR_BASE=<your ecr base> ./build-image-and-push.sh
$ yarn workspace cdk run cdk deploy --context application-version=$(git rev-parse --short HEAD) NextServerStack StaticStack
$ ECR_BASE=<your ecr base> ./deploy.sh

Then, visit your CloudFront URL.

Deploy

$ ECR_BASE=<your ecr base> ./deploy.sh
You can’t perform that action at this time.