-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
provider block using google-beta #5519
provider block using google-beta #5519
Comments
@anubbhavm Not sure what exact cases you are referring, but if you are taking about below two configs, they are different. Let me know if I addressed your issue.
|
Okay let me clarify: provider "google-beta" {
credentials = "${file("account.json")}"
project = "my-project-id"
region = "us-central1"
} Or, just stating the provider on the resource should suffice? resource "google_compute_instance" "beta-instance" {
provider = "google-beta"
# ...
} The TF documentation says both are necessary (a provider block and provider on the resource), but I was able to use the beta feature without explicitly defining a provider block. |
@anubbhavm the block is not required. You need to provide the attribute |
Thanks. Could we then have the TF documentation updated please? |
Thanks @anubbhavm, that's a good suggestion and I didn't even know that not providing the provider block for google-beta even worked, so I learned something new today :) Changing the labels since this is a docs improvement rather than a bug in the provider. We'll triage this alongside FRs. |
This changed in Terraform 0.12. We were aware at the time of |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Expected Behavior
As per documentation,
https://www.terraform.io/docs/providers/google/guides/provider_versions.html#using-both-provider-versions-together
To use the google-beta provider, explicitly define a google-beta provider block, and state on the resource which provider you wish to use.
Actual Behavior
Not explicitly defining the google-beta provider block and only defining the provider on the resource also seems to work.
The text was updated successfully, but these errors were encountered: