Skip to content
Discussion options

You must be logged in to vote

I've found the reason why:

I am using AWS's copilot to deploy. copilot runs cdk synth internally to generate the cloudformation templates, and then deploys the cloudformation template. It does not upload the assets that generated with cdk synth to the cdk S3 bucket. To resolve this, I separately use a cdk-assets publish --path <some-copilot-path>/cdk.out/Stack.assets.json to upload the assets first to S3 before deploying.

Script for copilot deployments:

export $SERVICE_NAME=<name>
copilot svc package --name $SERVICE_NAME --env dev
cdk-assets publish --path /copilot/$SERVICE_NAME/overrides/cdk.out/Stack.assets.json
copilot svc deploy --name $SERVICE_NAME --env dev 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by houdinisparks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant