-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
data.google_storage_bucket.project return the wrong value #13034
Comments
@martinOrigin8Cares I think below is by design. Why do you think it should not?
|
That will make the bucket data the only reousource data returning the project provider instead of the project where the bucket is. It make no sense. |
I was sure the concept behind the "data.resrouce" was to represent the "real" object (and all it's arguments/attributes) that exist in GCP. PLeaselet me know if I didn,t undetstand correctly. |
Do you have the HTTP request/responses from using Terraform to fetch this resource? I wonder how we are using the project in the request |
I've just hit that today and this is definitely a bug. For example, I have a use-case where I want to find the project of a bucket using this datasource. To me, this makes no sense. the project attribute on a bucket resource should match the bucket real project attribute from upstream, not the project from the current Terraform provider value. |
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.Terraform Version
Terraform v1.3.4
on linux_amd64
Affected Resource(s)
data.google_storage_bucket
registry.terraform.io/hashicorp/google v4.43.0
Terraform Configuration Files
You will need two GCP project to reproduce this.
Debug Output
Panic Output
Expected Behavior
Changes to Outputs:
Actual Behavior
Changes to Outputs:
Steps to Reproduce
terraform plan
Important Factoids
When the argument
project
of the provider is set, it override the value coming from the API.Also the google API doesn't returnthe
projectID
but theprojectNumber
seeReferences
b/275607440
The text was updated successfully, but these errors were encountered: