aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.48k stars 400 forks source link

copilot pipeline package and diff? #5434

Open jerometremblay opened 10 months ago

jerometremblay commented 10 months ago

I would like to generate the full CloudFormation template for the pipelines like I can with the services.

copilot pipeline package

WillGibson commented 6 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.

acodeninja commented 6 months ago

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:

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.

cooperra commented 3 weeks ago

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.