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
Describe the bug
When the names of the local and peer network are combined, even excluding the optional prefix, the length of the names can exceed the allowed 63 character limit set within GCP. There is no option to override or truncate this when the limit is exceeded and as such some networks will never be able to be configured using the peering module.
I.e.
Local network name = "webcore-net1-atlas-web01-production"
Peering network name = "database-net1-apollo-production"
Prefix = null
Error: "name" ("webcore-net1-atlas-web01-production-database-net1-apollo-production") doesn't match regexp "^(?:a-z?)$"
Create two networks with names exceeding 32 characters in length.
Attempt to peer them via the net-vpc-peering module
Witness error with no recourse
Expected behavior
The peering should be accepted with either a truncated name or the terraform should allow for an override name less than the 64 character limit.
Result
╷
│ Error: "name" ("webcore-net1-atlas-web01-production-database-net1-apollo-production") doesn't match regexp "^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$"
│
│ with module.peering["webcore-net1-atlas-web01-production"].google_compute_network_peering.local_network_peering,
│ on ..\cloud-foundation-fabric\modules\net-vpc-peering\main.tf line 24, in resource "google_compute_network_peering" "local_network_peering":
│ 24: name = "${local.prefix}${local.local_network_name}-${local.peer_network_name}"
│
╵
The text was updated successfully, but these errors were encountered:
Describe the bug
When the names of the local and peer network are combined, even excluding the optional prefix, the length of the names can exceed the allowed 63 character limit set within GCP. There is no option to override or truncate this when the limit is exceeded and as such some networks will never be able to be configured using the peering module.
I.e.
Local network name = "webcore-net1-atlas-web01-production"
Peering network name = "database-net1-apollo-production"
Prefix = null
Error: "name" ("webcore-net1-atlas-web01-production-database-net1-apollo-production") doesn't match regexp "^(?:a-z?)$"
Environment
To Reproduce
Expected behavior
The peering should be accepted with either a truncated name or the terraform should allow for an override name less than the 64 character limit.
Result
The text was updated successfully, but these errors were encountered: