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

Update google-two-tier example to be idempotent #12258

Closed
wants to merge 1 commit into from

Conversation

gobengo
Copy link

@gobengo gobengo commented Feb 26, 2017

The google-two-tier example in master adds or changes 2 things on each re-apply. This PR makes it idempotent.

* `google_compute_forwarding_rule.default.port_range = "80"` would save okay, but then would save to state file as "80-80", so it would always think a change was needed
* `google_compute_target_pool.default.instances` items would resolve to full URLs, but saved in state as just `{zone}/{instance.name}`.
  * This PR uses a [workaround](hashicorp#9121 (comment)) mentioned in hashicorp#9121
@paddycarver
Copy link
Contributor

Thanks for opening this @gobengo! I'm tempted to just get #9121 and #9051 fixed, instead of updating the examples to work around the bugs. What do you think?

@gobengo
Copy link
Author

gobengo commented Feb 26, 2017 via email

@apparentlymart
Copy link
Member

Hello @gobengo, and thanks for working on this!

As part of the the Terraform 0.10 release earlier this year, all of the Terraform providers were moved to their own repositories in the terraform-providers GitHub organization, and removed from the Terraform Core repository.

Unfortunately due to the fact that new issues and pull requests are being opened constantly, it was not possible for the various provider maintainers to merge all outstanding pull requests before this split, and there is no automatic way to migrate a pull request to a new repository.

As a result, this pull request can sadly no longer be applied as-is, and so I'm going to close it.

If you or someone else has the time and motivation to apply the same changes to the Google Cloud provider repository and open a new PR there, the maintainers of that provider should be able to review and merge it. On the other hand, it looks like at least one of the issues that @paddycarver mentioned has been closed in the mean time, so I'm not sure if this change is still required.

Thanks again for working on this, and sorry it was not able to be merged before the provider repository changes.

@gobengo
Copy link
Author

gobengo commented Oct 31, 2017

@apparentlymart makes sense. thanks!

@ghost
Copy link

ghost commented Apr 6, 2020

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.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants