Skip to content
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

Fix inconsistent locations in some resources - Part II #4394

Merged
3 changes: 1 addition & 2 deletions products/memcache/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ objects:
- !ruby/object:Api::Type::String
name: 'region'
description: |
The name of the Memcache region of the instance.
required: true
The region of the Memcache instance. If it is not provided, the provider region is used.
input: true
url_param_only: true
properties:
Expand Down
2 changes: 1 addition & 1 deletion products/memcache/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
default_from_api: true
is_set: true
region: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
default_from_api: true
parameters: !ruby/object:Overrides::Terraform::PropertyOverride
name: memcacheParameters

Expand Down
3 changes: 1 addition & 2 deletions products/tpu/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ objects:
- !ruby/object:Api::Type::String # TODO: resourceref?
name: 'zone'
description: |
The GCP location for the TPU.
required: true
The GCP location for the TPU. If it is not provided, the provider zone is used.
input: true
url_param_only: true
properties:
Expand Down
2 changes: 1 addition & 1 deletion products/tpu/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
default_from_api: true
diff_suppress_func: 'compareSelfLinkOrResourceName'
zone: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
default_from_api: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
constants: 'templates/terraform/constants/tpu_node.erb'
resource_definition: 'templates/terraform/resource_definition/tpu_node.erb'
Expand Down
3 changes: 1 addition & 2 deletions products/vpcaccess/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ objects:
- !ruby/object:Api::Type::String
name: 'region'
description: |
Region where the VPC Access connector resides
required: true
Region where the VPC Access connector resides. If it is not provided, the provider region is used.
input: true
url_param_only: true
properties:
Expand Down
2 changes: 2 additions & 0 deletions products/vpcaccess/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
function: 'validation.IntBetween(200, 1000)'
state: !ruby/object:Overrides::Terraform::PropertyOverride
exclude: false
region: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
selfLink: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ resource "google_service_networking_connection" "private_service_connection" {
resource "google_memcache_instance" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]["instance_name"] %>"
region = "us-central1"
melinath marked this conversation as resolved.
Show resolved Hide resolved
authorized_network = google_service_networking_connection.private_service_connection.network

node_config {
Expand Down
1 change: 0 additions & 1 deletion templates/terraform/examples/vpc_access_connector.tf.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
resource "google_vpc_access_connector" "connector" {
name = "<%= ctx[:vars]['name'] %>"
region = "us-central1"
ip_cidr_range = "10.8.0.0/28"
network = "default"
}