wolke-next-cdk
TypeScript icon, indicating that this package has built-in type declarations

0.22.0 • Public • Published

Wolke Next CDK

Project to deploy Next.js via CDK on AWS

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

IAM Role to allow CDK stuff

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": ["cloudformation:*"],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": ["cloudformation.amazonaws.com"]
        }
      },
      "Action": "*",
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "s3:*",
      "Resource": "arn:aws:s3:::cdktoolkit-stagingbucket-*",
      "Effect": "Allow"
    }
  ]
}

Optimized static assets

Please move all assets into /public/static/*. This is an optimized path that directly access S3 from Cloudfront. /public/* is passed through Lambda function, so takes longer and is more expensive.

Readme

Keywords

none

Package Sidebar

Install

npm i wolke-next-cdk

Weekly Downloads

1

Version

0.22.0

License

none

Unpacked Size

215 kB

Total Files

8

Last publish

Collaborators

  • fastner