You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Cannot post full debug output due to this being an internal service, but I think I have identified the root cause: The Google API is returning the connector ID in the format {connector}, while the API is expecting it to be PATCHed back in the format projects/{project}/locations/{location}/connectors/{connector}.
(The connector id is replaced with connectorid below. In the real output, it is just the short connector id, and not in the project/project/... format)
Snippet of the initial response to the GET request from the Google API (found via TF_LOG=DEBUG):
The terraform apply should work. This should be fixed by either:
The Google API responding with the VPC access connector in the right format (projects/{project}/locations/{location}/connectors/{connector})
or
The connector modifying the request to be in the right format, when it receives an id in the short format
Actual Behavior
It fails with this error message
Details:
[
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "must be in form projects/{project}/locations/{location}/connectors/{connector}.",
"field": "Violation in UpdateServiceRequest.service.template.vpc_access.connector"
}
]
}
]
Steps to reproduce
terraform apply
Important Factoids
Getting this error when trying to update a cloud run v2 service that is externally managed, while ignoring changes to template, etc. So just trying to update other properties, while keeping everything else the same. Basically, terraform can't post back the response it receives without an error
References
No response
The text was updated successfully, but these errors were encountered:
@ivangreene the issue was replicated many times without error messages, just try to follow something similar like in the documentation example for the template argument
Also, the format was returned correctly in this way -> projects/{project}/locations/{location}/connectors/{connector}
I had the same issue, but it turns out I was using the wrong ID, make sure to use the ID from google_vpc_access_connector.connector.id in your resource google_cloud_run_v2_service. Hope it could resolve the issue.
Community Note
Terraform Version
Terraform v1.7.5
on darwin_arm64
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration
Debug Output
Cannot post full debug output due to this being an internal service, but I think I have identified the root cause: The Google API is returning the connector ID in the format
{connector}
, while the API is expecting it to be PATCHed back in the formatprojects/{project}/locations/{location}/connectors/{connector}
.(The connector id is replaced with
connectorid
below. In the real output, it is just the short connector id, and not in the project/project/... format)Snippet of the initial response to the GET request from the Google API (found via
TF_LOG=DEBUG
):Snippet of the PATCH request:
Expected Behavior
The
terraform apply
should work. This should be fixed by either:projects/{project}/locations/{location}/connectors/{connector}
)or
Actual Behavior
It fails with this error message
Steps to reproduce
terraform apply
Important Factoids
Getting this error when trying to update a cloud run v2 service that is externally managed, while ignoring changes to template, etc. So just trying to update other properties, while keeping everything else the same. Basically, terraform can't post back the response it receives without an error
References
No response
The text was updated successfully, but these errors were encountered: