-
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
google_app_engine_standard_app_version seems to be ignoring the provided project
#22095
Comments
I've confirmed that it's having the billing project set that results in the error - it appears that the AppEngine API needs to be enabled in both the target project and the billing project. Do you (or any of the folks who have thumbs-up'd) happen to know if this is new behavior? And if so, about when did it start? For reference, here's the config I used:
And the API request it generated:
|
@SirGitsalot this is my first time attempting to use this specific resource, so I wouldn't be able to tell whether this is a new behavior or not |
Hi @llarco Since you are using a
For sensitive data you could use examples like:
|
Community Note
Terraform Version & Provider Version(s)
Terraform v1.7.0
on linux_amd64
Affected Resource(s)
google_app_engine_standard_app_version
Terraform Configuration
Debug Output
Expected Behavior
google_app_engine_standard_app_version is created successfully in project 1.
Actual Behavior
Error is thrown indicating that appengine.googleapis.com must be enabled in project 2
Steps to reproduce
No response
Important Factoids
We use guardian to apply our TF changes. When we don't set the
project
field in any TF resource, it uses the GCP project of guardian by default (in the error logs above referred as <project 2>).Although we are setting
project
to <project 1> ingoogle_app_engine_standard_app_version
, it seems to be ignored.References
Looking at the implementation code, it seems that even if you provide a
project
, it might get overriden if abilling_project
is found:terraform-provider-google/google/services/appengine/resource_app_engine_standard_app_version.go
Lines 617 to 620 in 6719d6d
The text was updated successfully, but these errors were encountered: