wolke-next-cdk
v0.22.0
Published
Wolke AWS Next.js deployment
Downloads
7
Readme
Wolke Next CDK
Project to deploy Next.js via CDK on AWS
Useful commands
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk 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.