diff --git a/products/compute/terraform.yaml b/products/compute/terraform.yaml index b440c67fe3cf..91588011aca9 100644 --- a/products/compute/terraform.yaml +++ b/products/compute/terraform.yaml @@ -946,6 +946,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides default_from_api: true custom_code: !ruby/object:Provider::Terraform::CustomCode post_create: templates/terraform/post_create/compute_network_delete_default_route.erb + encoder: templates/terraform/encoders/network.erb extra_schema_entry: templates/terraform/extra_schema_entry/network.erb NetworkEndpoint: !ruby/object:Overrides::Terraform::ResourceOverride id_format: "{{project}}/{{zone}}/{{network_endpoint_group}}/{{instance}}/{{ip_address}}/{{port}}" diff --git a/templates/terraform/encoders/network.erb b/templates/terraform/encoders/network.erb new file mode 100644 index 000000000000..74f3566a0e7e --- /dev/null +++ b/templates/terraform/encoders/network.erb @@ -0,0 +1,3 @@ +obj["autoCreateSubnetworks"] = d.Get("auto_create_subnetworks") + +return obj, nil