Skip to content
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

terraform 0.12 planfile support #44

Open
frealmyr opened this issue Jul 30, 2019 · 2 comments
Open

terraform 0.12 planfile support #44

frealmyr opened this issue Jul 30, 2019 · 2 comments

Comments

@frealmyr
Copy link

WHAT

Running terraform plan -out=planfile, and then in a later step terraform plan planfile | tfnotify plan no longer works in Terraform >=0.12

WHY

After Terraform 0.12 #19235 it is no longer possible to pass a saved plan file to terraform plan.
When attempting to pass terraform plan planfile to tfnotify, terraform throws the following error:

Error: Invalid configuration directory

Cannot pass a saved plan file to the 'terraform plan' command. To apply a
saved plan, use: terraform apply terraform-shared.plan
@frealmyr
Copy link
Author

Support for parsing the terraform show planfile command could fix this, however it seems like the output will be limited to the module names and the corresponding action.

Attempt to run terraform show planfile | tfnotify plan results in:

  + module.gcp.google_storage_bucket_iam_member.users_docker_pull[4]

cannot parse plan result
Exited with code 1

@Starefossen
Copy link
Contributor

Any thoughts on supporting Terraform v0.12 @b4b4r07 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants