-
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
google_vertex_ai_endpoint: Cannot determine region #12944
google_vertex_ai_endpoint: Cannot determine region #12944
Comments
This is a bug. This happens when VertexAIBasePath contains {{region}} To fix, these two fields need to be sync'ed. |
HI @edwardmedia , I have the same problem, I'm unable to create an endpoint in a different region from the ressource one. How can I fix this ? |
We can introduce a |
Any ETA for this fix? |
I understand the workaround is to set the region at provider level, something like this, but since we are creating vertex endpoints in a loop, we are facing lack of support for instantiating provider in a loop. Any advice? |
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. |
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.2.7
Affected Resource(s)
google v4.42.0
Terraform Configuration Files
Debug Output
When I didn't set field "region" on the resource level, got error:
╷
│ Error: Cannot determine region: set in this resource, or set provider-level 'region' or 'zone'.
│
│ with google_vertex_ai_endpoint.main,
│ on main.tf line 21, in resource "google_vertex_ai_endpoint" "main":
│ 21: resource "google_vertex_ai_endpoint" "main" {
│
╵
When I set field "region" on the resource level, got error:
╷
│ Error: Unsupported argument
│
│ on main.tf line 26, in resource "google_vertex_ai_endpoint" "main":
│ 26: region = "us-central1"
│
│ An argument named "region" is not expected here.
Panic Output
Expected Behavior
An endpoint should be created successfully if field "location" is provided on the resource level.
Actual Behavior
Error "Cannot determine region: set in this resource, or set provider-level 'region' or 'zone'." occurred when location field is set. And when setting "region" on the resource level, error "Unsupported argument" occurred.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: