hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.8k stars 443 forks source link

Allow skipping stacks with no changes #2116

Closed jld-adriano closed 12 months ago

jld-adriano commented 1 year ago

Community Note

Description

We use multi stack deployments quite frequently during development, using "*", but do not want to auto-approve since seeing the changes is part of the development process. However, we have to manually skip all the stacks with no changes before getting to the ones that may have changed on each loop.

Something like --skip-no-changes would speed up this use case significantly

Another useful flag would be to enable supression of "refresh" and "init" logs

ansgarm commented 12 months ago

Hi 👋

I just tested this and this issue is now obsolete since we refactored how we invoke the Terraform CLI.

In a short example with a chain of three stacks with each depending on the previous one, it didn't wait for approval on the first stack and last stack when there were only changes on the second one.

Screenshot 2023-07-27 at 15 08 54
github-actions[bot] commented 11 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.