Skip to content

Commit 20cfffe

Browse files
committed
follow up feedback
1 parent 2cf9041 commit 20cfffe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/interconnect_attachment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "google_compute_interconnect_attachment" "attachment" {
2424
type = var.type
2525
edge_availability_domain = var.edge_availability_domain
2626
description = var.description
27-
bandwidth = var.bandwidth
27+
bandwidth = var.type == "DEDICATED" ? var.bandwidth : null
2828
mtu = var.mtu
2929
candidate_subnets = var.candidate_subnets
3030
vlan_tag8021q = var.vlan_tag8021q

modules/interconnect_attachment/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ variable "type" {
5555
variable "bandwidth" {
5656
type = string
5757
description = "Provisioned bandwidth capacity for the interconnect attachment"
58-
default = null
58+
default = "BPS_10G"
5959
}
6060

6161
variable "mtu" {

0 commit comments

Comments
 (0)