Skip to content

Forces new ressource everytime because of v1 vs beta link #2128

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

Closed
jul-scherer opened this issue Sep 28, 2018 · 1 comment · Fixed by #2138
Closed

Forces new ressource everytime because of v1 vs beta link #2128

jul-scherer opened this issue Sep 28, 2018 · 1 comment · Fixed by #2138
Assignees

Comments

@jul-scherer
Copy link

jul-scherer commented Sep 28, 2018

Terraform Version

Terraform v0.11.7

Affected Resource(s)

Please list the resources as a list, for example:

  • google_compute_instance_template
  • google_compute_region_disk

Terraform Configuration Files

resource "google_compute_region_disk" "test-disk" {
  name  = "test-app-disk${count.index}"
  type  = "pd-standard"
...
}
resource "google_compute_instance_template" "rp-template" {
  name         = "blablah"
  machine_type = "n1-standard-2"   
  disk {
    source = "${google_compute_region_disk.test-disk.self_link}"
    auto_delete  = false
    boot         = false
  }
....

Expected Behavior

When apply the configuration, nothing must change.

Actual Behavior

Forces new ressource because of the link beta applied vs v1 in the terraform plan
(PS: this is the apply i'm doing at work i didn't put the exact code above)
disk.1.source: https://www.googleapis.com/compute**/beta/**projects/fml-build-infracore/regions/europe-west3/disks/vulture-app-region-disk0" => "https://www.googleapis.com/compute**/v1/**projects/fml-build-infracore/regions/europe-west3/disks/vulture-app-region-disk0"

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create ressources google_compute_instance_template and google_compute_region_disk
  2. terraform apply
  3. terraform apply

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@ghost
Copy link

ghost commented Nov 16, 2018

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants