I bundle my assets using Docker & Dockerfile:
Code.from_docker_build(
path='/path',
build_args={},
)
Every time I run cdk deploy
or cdk bootstrap
the code bundling is triggered.
- On the
cdk deploy
action code bundling makes sense. - But on the
cdk bootstrap
command the code bundling should not be triggered. Is there any way to avoid code bundling duringcdk bootstrap
?
CodePudding user response:
Docs: If issued with no arguments... the cdk bootstrap command synthesizes the current app and bootstraps the environments its stacks will be deployed to.
So to have cdk bootstrap
skip the synth step, (a) bootstrap from outside the app directory and (b) explicitly provide the account and region:
cdk bootstrap ACCOUNT-NUMBER/REGION # e.g.
cdk bootstrap 1111111111/us-east-1