Skip to content

Commit

Permalink
fix: Updating Equinix Provider Version
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti-patl committed Feb 21, 2025
1 parent 71df81e commit d19efde
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/port-2-network-term-based-connection/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ terraform {
required_version = ">= 1.5.4"
required_providers {
equinix = {
source="developer.equinix.com/terraform/equinix"
version = "9.0.0"
source = "equinix/equinix"
version = ">= 3.2.0"
}
}
}
4 changes: 2 additions & 2 deletions examples/port-2-port-term-based-connection/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ terraform {
required_version = ">= 1.5.4"
required_providers {
equinix = {
source="developer.equinix.com/terraform/equinix"
version = "9.0.0"
source = "equinix/equinix"
version = ">= 3.2.0"
}
}
}
4 changes: 2 additions & 2 deletions modules/port-connection/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource "equinix_fabric_connection" "primary_port_connection" {
redundancy { priority = "PRIMARY" }
order {
purchase_order_number = var.purchase_order_number != "" ? var.purchase_order_number : null
term_length = var.term_length != "" ? var.term_length: null
term_length = var.term_length >= 1 ? var.term_length: null
}

additional_info = var.additional_info != [] ? var.additional_info : null
Expand Down Expand Up @@ -155,7 +155,7 @@ resource "equinix_fabric_connection" "secondary_port_connection" {
}
order {
purchase_order_number = var.purchase_order_number != "" ? var.purchase_order_number : null
term_length = var.term_length != "" ? var.term_length: null
term_length = var.term_length >= 1 ? var.term_length: null
}

additional_info = var.additional_info != [] ? var.additional_info : null
Expand Down
1 change: 0 additions & 1 deletion modules/port-connection/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ variable "purchase_order_number" {
variable "term_length" {
description = "Order Term Length"
type = number
default = 1
}
variable "aside_port_name" {
description = "Equinix A-Side Port Name; your tagging must match the encapsulation type of the port (DOT1Q or QINQ)"
Expand Down
2 changes: 1 addition & 1 deletion modules/port-connection/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
equinix = {
source = "equinix/equinix"
version = ">= 2.9.0"
version = ">= 3.2.0"
}
}
}

0 comments on commit d19efde

Please sign in to comment.