Open mattalbr opened 2 years ago
Hi @mattalbr, is there any update regarding this one? Do you have any workaround or something? I have the same issue and would like to hear any info from you.
Just stumbled upon the same error. Removing the existing settings manually from GCP and redeploy vpc config worked for me.
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.1.8 on linux_arm64
Affected Resource(s)
Terraform Configuration Files
Before:
AFter
Debug Output
Panic Output
Expected Behavior
The function should have been updated with the vpc connector removed.
Actual Behavior
Error: Error while updating cloudfunction configuration: googleapi: Error 400: The request has errors │ Details: │ [ │ { │ "@type": "type.googleapis.com/google.rpc.BadRequest", │ "fieldViolations": [ │ { │ "description": "\"vpc_connector_egress_settings\" requires \"vpc_connector\" field to be set.", │ "field": "vpc_connector_egress_settings" │ } │ ] │ } │ ] │ , badRequest │ │ with google_cloudfunctions_function.patient_data_uploader_function, │ on main.tf line 376, in resource "google_cloudfunctions_function" "patient_data_uploader_function": │ 376: resource "google_cloudfunctions_function" "patient_data_uploader_function" {
Steps to Reproduce
terraform apply
first configterraform apply
second configImportant Factoids
This also seemed to fail when I tried via command line:
cloud functions deploy patient-data-uploader-function --clear-vpc-connector
I had to manually change via UI to get this to work.
References
b/274818550