You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running terraform apply on a Terraform managed EMR cluster that uses a path.module reference to configurations.json with remote state, when the path to the file changes, causes Terraform to destroy the EMR cluster and create a new one because the path to the configurations.json file is stored in the Terraform state which forces a new resource.
Updating a Terraform managed EMR cluster that uses a path.module reference to a configurations JSON file from a different path/machine when using remote state should not create and destroy a new EMR cluster.
Actual Behavior
Running terraform apply on a Terraform managed EMR cluster that uses a path.module reference, causes Terraform to destroy the EMR cluster and create a new one because the path to the configurations.json file is stored in the Terraform state.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply to create an EMR cluster on MachineA that has a path.module reference to a configurations.json file (use remote state)
Move to MachineB or simply change the path to the Terraform code
Make no other changes and runterraform apply, Terraform should destroy the EMR cluster and create a new one
you can specify the contents of the file as well, instead of the file path. Using a template_file as the value of configurations will work and not cause unnecessary diff's.
I have tested this with the latest 0.9.5. I did not check which version this first appeared.
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 have 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.
ghost
locked and limited conversation to collaborators
Apr 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
Running
terraform apply
on a Terraform managed EMR cluster that uses a path.module reference to configurations.json with remote state, when the path to the file changes, causes Terraform to destroy the EMR cluster and create a new one because the path to the configurations.json file is stored in the Terraform state which forces a new resource.Terraform Version
Terraform v0.8.5
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Updating a Terraform managed EMR cluster that uses a path.module reference to a configurations JSON file from a different path/machine when using remote state should not create and destroy a new EMR cluster.
Actual Behavior
Running
terraform apply
on a Terraform managed EMR cluster that uses a path.module reference, causes Terraform to destroy the EMR cluster and create a new one because the path to the configurations.json file is stored in the Terraform state.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
to create an EMR cluster on MachineA that has a path.module reference to a configurations.json file (use remote state)terraform apply
, Terraform should destroy the EMR cluster and create a new oneReferences
Related Issues
#8754
#7927
The text was updated successfully, but these errors were encountered: