Skip to content

Conversation

@duckpuppy
Copy link
Contributor

If a plan file is being used in the TerraformApplyCommand, then the only
applicable Terraform subcommand is apply. This PR forces apply to be used if
a plan file is set. This works whether the plan file was created with or without
the -destroy argument.

  • Force the use of terraform apply in TerraformApplyCommand if a planFile is present
  • Update changelog

Merge Checklist

  • Have you linked this Pull Request to an Issue?
  • Have you updated any relevant README files, to explain how this new feature works (with examples)?
  • Have you added relevant test cases for your change?
  • Do all tests and code style checks pass with ./gradlew check --info?
  • Have you successfully run your change in a pipeline in a Jenkins instance?
  • Have you updated the CHANGELOG?

Copy link
Collaborator

@kmanning kmanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@duckpuppy duckpuppy force-pushed the plan_file_on_destroy branch from a40ee13 to 608d0d3 Compare April 19, 2022 13:26
@duckpuppy duckpuppy merged commit 20765fb into manheim:master Apr 19, 2022
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

Successfully merging this pull request may close these issues.

DestroyPlugin & PassPlanFilePlugin - Terraform Destroy can't be called with a plan file

2 participants