Community Note
- 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 the
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 to hashibot, a community member has claimed the issue already.
Terraform Version
Terraform v1.0.6
on darwin_amd64
- provider registry.terraform.io/hashicorp/google-beta v3.86.0
Affected Resource(s)
- google_vpc_access_connector
Terraform Configuration Files
resource "google_vpc_access_connector" "connector" {
provider = google-beta
project = local.project_id
name = "vpc-con"
region = "us-central1"
max_instances = 7
min_instances = 2
subnet {
name = google_compute_subnetwork.custom_test.name
}
machine_type = "e2-standard-4"
}
resource "google_compute_subnetwork" "custom_test" {
provider = google-beta
project = local.project_id
name = "vpc-con"
ip_cidr_range = "10.2.0.0/28"
region = "us-central1"
network = google_compute_network.custom_test.id
}
resource "google_compute_network" "custom_test" {
project = local.project_id
provider = google-beta
name = "vpc-con"
auto_create_subnetworks = false
}
Expected Behavior
No diff after apply.
Actual Behavior
Diff with force recreate.
Initial apply
# google_vpc_access_connector.connector will be created
+ resource "google_vpc_access_connector" "connector" {
+ id = (known after apply)
+ machine_type = "e2-standard-4"
+ max_instances = 7
+ max_throughput = 300
+ min_instances = 2
+ min_throughput = 200
+ name = "vpc-con"
+ project = "...."
+ region = "us-central1"
+ self_link = (known after apply)
+ state = (known after apply)
+ subnet {
+ name = "vpc-con"
+ project_id = (known after apply)
}
}
Subsequent apply
Terraform will perform the following actions:
# google_vpc_access_connector.connector must be replaced
-/+ resource "google_vpc_access_connector" "connector" {
~ id = "projects/...../locations/us-central1/connectors/vpc-con" -> (known after apply)
~ max_throughput = 700 -> 300 # forces replacement
name = "vpc-con"
~ self_link = "projects/..../locations/us-central1/connectors/vpc-con" -> (known after apply)
~ state = "READY" -> (known after apply)
# (6 unchanged attributes hidden)
~ subnet {
name = "vpc-con"
~ project_id = "...." -> (known after apply)
}
}
Steps to Reproduce
terraform apply
Important Factoids
This might be an API limitation and seems to happen when I specify an explicit max_instances value.
References
saw a similar issue here GoogleCloudPlatform/magic-modules#4823
b/308570051
Community Note
modular-magicianuser, 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.0.6
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
No diff after apply.
Actual Behavior
Diff with force recreate.
Initial apply
Subsequent apply
Steps to Reproduce
terraform applyImportant Factoids
This might be an API limitation and seems to happen when I specify an explicit
max_instancesvalue.References
saw a similar issue here GoogleCloudPlatform/magic-modules#4823
b/308570051