Replies: 2 comments 3 replies
-
Hello @Hillsie 👋🏼 I will give a brief overview to the feature and hopefully that answers the questions! # Without CDK override
$ copilot svc package --env test # Produces CFN template A.
# With CDK override
$ copilot svc override --tool cdk # Generates skeleton codes for a CDK app. You can think of this as similar to `cdk init`.
$ copilot svc package --env test
# Copilot produces CFN template A
# It sees the `override/` folder so it feeds template A into the CDK app by writing template A into `.build/in.yml`
# The CDK app modifies individual resources in template A, thus producing template B Therefore, what the CDK overrides feature does is to connect Copilot with CDK via. the template A that Copilot produces; what it doesn't do is to model Copilot as a CDK construct. The end product is a CloudFormation template, not a CDK app.
The command
I think you could take the skeleton CDK app generated from Hope this helps clarifying things! Please let me know though if I'm missing the question 👀 |
Beta Was this translation helpful? Give feedback.
-
Thank you, @Lou1415926 |
Beta Was this translation helpful? Give feedback.
-
I am looking to make some modifications to the stack that I have generated. I see that there is a way to add cdk overrides. Does this generate the Copilot into a CDK app that can be modified. It wasn't clear from the documentation.
I am looking to tweak the deployment I have and was hoping to output a CDK from a cloudformation or from copilot.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions