Skip to content

Commit

Permalink
fix: tf files
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaportPhilipBrowne committed May 29, 2024
1 parent 8006882 commit 5c10fa0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion examples/mcr/mcr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ resource "megaport_mcr" "mcr" {
port_speed = 1000
location_id = data.megaport_location.bne_nxt1.id
contract_term_months = 1
marketplace_visibility = false
}
7 changes: 4 additions & 3 deletions examples/vxc_basic/vxc_basic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ resource "megaport_vxc" "vxc" {
product_name = "Megaport VXC"
rate_limit = 1000
contract_term_months = 1
port_uid = megaport_port.port_1.product_uid

a_end = {}
a_end = {
requested_product_uid = megaport_port.port_1.product_uid
}

b_end = {
ordered_product_uid = megaport_port.port_2.product_uid
requested_product_uid = megaport_port.port_2.product_uid
}
}
5 changes: 2 additions & 3 deletions examples/vxc_mcr_bgp/vxc_mcr_bgp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ data "megaport_partner" "aws_port" {
resource "megaport_mcr" "mcr" {
product_name = "Megaport Example MCR"
location_id = data.megaport_location.bne_nxt1.id
marketplace_visibility = false
contract_term_months = 1
port_speed = 5000
asn = 64555
Expand Down Expand Up @@ -52,10 +51,10 @@ resource "megaport_mcr" "mcr" {
resource "megaport_vxc" "aws_vxc" {
product_name = "Megaport Example VXC - AWS"
rate_limit = 1000
port_uid = megaport_mcr.mcr.product_uid
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mcr.mcr.product_uid
ordered_vlan = 0
}

Expand Down Expand Up @@ -93,7 +92,7 @@ resource "megaport_vxc" "aws_vxc" {
}

b_end = {
ordered_product_uid = data.megaport_partner.aws_port.product_uid
requested_product_uid = data.megaport_partner.aws_port.product_uid
}

b_end_partner_config = {
Expand Down
9 changes: 4 additions & 5 deletions examples/vxc_mcr_csps/vxc_mcr_csps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ data "megaport_partner" "aws_port" {
resource "megaport_mcr" "mcr" {
product_name = "Megaport Example MCR A-End"
location_id = data.megaport_location.bne_nxt1.id
marketplace_visibility = false
contract_term_months = 1
port_speed = 5000
asn = 64555
Expand All @@ -32,15 +31,15 @@ resource "megaport_mcr" "mcr" {
resource "megaport_vxc" "aws_vxc" {
product_name = "Megaport VXC Example - AWS"
rate_limit = 1000
port_uid = megaport_mcr.mcr.product_uid
contract_term_months = 1

a_end = {
requested_product_uid = megaport.mcr.mcr.product_uid
ordered_vlan = 2191
}

b_end = {
ordered_product_uid = data.megaport_partner.aws_port.product_uid
requested_product_uid = data.megaport_partner.aws_port.product_uid
}

b_end_partner_config = {
Expand All @@ -60,9 +59,9 @@ resource "megaport_vxc" "gcp_vxc" {
product_name = "Megaport VXC Example - Google"
rate_limit = 1000
contract_term_months = 1
port_uid = megaport_mcr.mcr.product_uid

a_end = {
requested_product_uid = = megaport_mcr.mcr.product_uid
ordered_vlan = 182
}

Expand All @@ -80,9 +79,9 @@ resource "megaport_vxc" "azure_vxc" {
product_name = "Megaport VXC Example - Azure"
rate_limit = 200
contract_term_months = 1
port_uid = megaport_mcr.mcr.product_uid

a_end = {
requested_product_uid = megaport_mcr.mcr.product_uid
ordered_vlan = 0
}

Expand Down

0 comments on commit 5c10fa0

Please sign in to comment.