Open jerometremblay opened 10 months ago
We could do with copilot pipeline package
too.
We are using overrides to get things the way we need them and, sadly, the first time we get to see the generated templates to check things out in the template is when we run copilot pipeline deploy
, which can be disruptive for our colleagues if we mess things up.
As a temporary work around for this only when using CDK overrides, you can run copilot pipeline deploy --diff
, select the pipeline you want to preview then say no when asked to deploy.
Then you will find two files:
/copilot/pipelines/<pipeline>/overrides/.build/in.yml
- the input CloudFormation template (pre override)./copilot/pipelines/<pipeline>/overrides/cdk.out/Stack.template.json
- the output CloudFormation template after it's been processed by cdk overrides.It would be great if this command existed and allowed you to generate pre and post override templates for YAML Patch and CDK, in addition to non-overridden pipelines.
I'll add that after running copilot pipeline override --tool yamlpatch
, the generated README.md suggests that copilot pipeline package
already exists:
Troubleshooting
copilot [noun] package
preview the transformed template by writing to stdout.copilot [noun] package --diff
show the difference against the template deployed in your environment.
I would like to generate the full CloudFormation template for the pipelines like I can with the services.
copilot pipeline package