-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
No import support for google_compute_global_forwarding_rule? DR setup for Global LB #643
Comments
Hi @siulcode, the import support for the global forwarding rule will be included in the next release of the google cloud terraform provider. |
Thanks Vincent for the quick turn around!
…On Tue, Oct 31, 2017 at 2:31 PM, Vincent Roseberry ***@***.*** > wrote:
Hi @siulcode <https://github.com/siulcode>, the import support for the
global forwarding rule will be included in the next release of the google
cloud terraform provider.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGdCMFXODpuNO_UFsa69bViNp44vskaks5sx2eXgaJpZM4QKWZe>
.
--
Luis Lopez
Sr. Sys Admin
|
Signed-off-by: Modular Magician <[email protected]>
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! |
This issue was originally opened by @siulcode as hashicorp/terraform#16488. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi there,
It looks like there's no import support for google_compute_global_forwarding_rule?
There is however support for google_compute_forwarding_rule.
I'm trying to add an extra HTTP backend (as our DR plan) to a global Google Load balancer, but I'm getting the below message that it is not supported.
Is there a future release on this, or a better way to accomplish this?
Terraform Version
$ terraform -v
Terraform v0.10.8
Terraform Configuration Files
Expected Behavior
What should have happened?
For Regional forwarding rules it works:
terraform import -var-file=../environments/sandbox.uscentral1.tfvars google_compute_forwarding_rule.enableto-forwardingrule-dr sandbox-cf-ws-https
google_compute_forwarding_rule.enableto-forwardingrule-dr: Importing from ID "sandbox-cf-ws-https"...
google_compute_forwarding_rule.enableto-forwardingrule-dr: Import complete!
Imported google_compute_forwarding_rule (ID: sandbox-cf-ws-https)
google_compute_forwarding_rule.enableto-forwardingrule-dr: Refreshing state... (ID: sandbox-cf-ws-https)
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
Actual Behavior
What actually happened?
For Global forwarding rule, no luck:
terraform import -var-file=../environments/sandbox.uscentral1.tfvars google_compute_global_forwarding_rule.website-forwardingrule-dr sandbox-fr-website-lb-http
google_compute_global_forwarding_rule.website-forwardingrule-dr: Importing from ID "sandbox-fr-website-lb-http"...
Error importing: 1 error(s) occurred:
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example:
terraform init
Initializing provider plugins...
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
terraform apply
NA
Important Factoids
Are there anything atypical about your situation that we should know? For example: is Terraform running in a wrapper script or in a CI system? Are you passing any unusual command line options or environment variables to opt-in to non-default behavior?
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: