Closed pavlo-mais closed 1 year ago
Hey! It looks like you did not bootstrap your environment. You need to run it manually outside of this script, the reason being speed - if it would be part of this package, it would most likely need to run every time, resulting in slower deployment times and unnecessary steps in case you have already bootstrapped once.
Try running npx cdk aws://661723878467/us-east-1
.
I will try to look into it, if there is possibility to check and provide better error message at least.
Oki, looked into it, discussed the option and here we go.
deploy
command has --bootstrap
option, if you pass this flag, it will boostrap your environment before deploying 💯
See: https://github.com/sladg/nextjs-lambda/commit/4fe52f49df466f52c92aa5a90b5c96bdbe0d3523
Available in version 3.15.0
Thank You.
Steps to reproduce
next build
npx --package @sladg/nextjs-lambda next-utils pack
npx --package @sladg/nextjs-lambda next-utils deploy
I getIs something missing in README.md? Do I really need to run
cdk bootstrap
manually? Thanks.