-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run terraform plan
on package
#18490
Comments
terraform plan
on check after validateterraform plan
on package
I think that the |
Hello there, I would like to implement this feature. I added a draft PR highlighting my approach so far. I'm still figuring out the test suite, so it's not done yet. But I wanted to get in touch already for some early feedback. How do you feel about this change? |
added a unit test as well and removed the Draft from the PR, looking forward to your feedback. |
ping @alonsodomin @lilatomic |
…eploy` goal (#20488) Changed the following things to achieve this - Add a `--dry-run` flag to the `experimental-deploy` goal to handle dry runs such as `terraform plan` - Run `plan` rather than `apply` when setting the `--dry-run` flag while deploying a `terraform_deployment` - Changed Helm deployments to use the new `--dry-run` flag instead of a passthrough arg for dry-running Tested - the terraform change via a unit test and also tried it out manually in my own project. - the helm change via a unit test. Closes #18490
Is your feature request related to a problem? Please describe.
I created a bug issue here related to
pants check
not runningterraform init
beforeterraform validate
. IMO, check should also run terraform plan.Describe the solution you'd like
pants check
runsterraform plan
after runninginit
andvalidate
.Describe alternatives you've considered
Check feels like the right goal to me but I'm fairly ambivalent about what the actual goal is called so long as some mechanism to call
terraform plan
is in place.The text was updated successfully, but these errors were encountered: