-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Adding NIMF doc updates to templates
- Loading branch information
1 parent
0531923
commit ee13ff1
Showing
9 changed files
with
219 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,23 +132,21 @@ resource "equinix_fabric_connection" "example" { | |
|
||
```terraform | ||
resource "equinix_metal_vlan" "example1" { | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
} | ||
resource "equinix_metal_connection" "example" { | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
} | ||
data "equinix_fabric_service_profiles" "zside" { | ||
count = var.zside_ap_type == "SP" ? 1 : 0 | ||
filter { | ||
|
@@ -157,7 +155,6 @@ data "equinix_fabric_service_profiles" "zside" { | |
values = ["AWS Direct Connect"] | ||
} | ||
} | ||
resource "equinix_fabric_connection" "example" { | ||
name = "tf-NIMF-metal-2-aws-legacy" | ||
type = "EVPL_VC" | ||
|
@@ -166,7 +163,7 @@ resource "equinix_fabric_connection" "example" { | |
emails = "[email protected]" | ||
} | ||
project { | ||
project_id = local.fabric_project_id | ||
project_id = local.fabric_project_id | ||
} | ||
bandwidth = "200" | ||
order { | ||
|
@@ -199,23 +196,21 @@ resource "equinix_fabric_connection" "example" { | |
|
||
```terraform | ||
resource "equinix_metal_vlan" "example1" { | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
} | ||
resource "equinix_metal_connection" "example" { | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
} | ||
resource "equinix_fabric_connection" "example" { | ||
name = "tf-NIMF-metal-2-aws-legacy" | ||
type = "EVPL_VC" | ||
|
@@ -224,7 +219,7 @@ resource "equinix_fabric_connection" "example" { | |
emails = "[email protected]" | ||
} | ||
project { | ||
project_id = local.fabric_project_id | ||
project_id = local.fabric_project_id | ||
} | ||
bandwidth = "200" | ||
order { | ||
|
@@ -280,4 +275,4 @@ In addition to all arguments above, the following attributes are exported: | |
* `ports` - List of connection ports - primary (`ports[0]`) and secondary (`ports[1]`). Schema of port is described in documentation of the [equinix_metal_connection datasource](../data-sources/metal_connection.md). | ||
* `service_tokens` - List of connection service tokens with attributes required to configure the connection in Equinix Fabric with the [equinix_fabric_connection](./fabric_connection.md) resource or from the [Equinix Fabric Portal](https://fabric.equinix.com/dashboard). Scehma of service_token is described in documentation of the [equinix_metal_connection datasource](../data-sources/metal_connection.md). | ||
* `token` - (Deprecated) Fabric Token required to configure the connection in Equinix Fabric with the [equinix_fabric_connection](./fabric_connection.md) resource or from the [Equinix Fabric Portal](https://fabric.equinix.com/dashboard). If your organization already has connection service tokens enabled, use `service_tokens` instead. | ||
* `authorization_code` - Fabric Authorization code to configure the NIMF connection with Cloud Service Provider through Equinix Fabric with the [equinix_fabric_connection](./fabric_connection.md) resource from the [Equinix Developer Portal](https://developer.equinix.com/dev-docs/fabric/getting-started/fabric-v4-apis/connect-metal-to-amazon-web-services). | ||
* `authorization_code` - Fabric Authorization code to configure the NIMF connection with Cloud Service Provider through Equinix Fabric with the [equinix_fabric_connection](./fabric_connection.md) resource from the [Equinix Developer Portal](https://developer.equinix.com/dev-docs/fabric/getting-started/fabric-v4-apis/connect-metal-to-amazon-web-services). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
resource "equinix_fabric_connection" "metal2aws" { | ||
name = "ConnectionName" | ||
type = "EVPLAN_VC" | ||
notifications { | ||
type = "ALL" | ||
emails = ["[email protected]", "[email protected]"] | ||
} | ||
bandwidth = 50 | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
a_side { | ||
access_point { | ||
type = "METAL_NETWORK" | ||
authentication_key = "<metal_authorization_code>" | ||
} | ||
} | ||
z_side { | ||
access_point { | ||
type = "SP" | ||
authentication_key = "<aws_account_id>" | ||
seller_region = "us-west-1" | ||
profile { | ||
type = "L2_PROFILE" | ||
uuid = "<service_profile_uuid>" | ||
} | ||
location { | ||
metro_code = "SV" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
resource "equinix_fabric_connection" "fcr2metal" { | ||
name = "ConnectionName" | ||
type = "IP_VC" | ||
notifications { | ||
type = "ALL" | ||
emails = ["[email protected]", "[email protected]"] | ||
} | ||
bandwidth = 50 | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
a_side { | ||
access_point { | ||
type = "CLOUD_ROUTER" | ||
router { | ||
uuid = "<cloud_router_uuid>" | ||
} | ||
} | ||
} | ||
z_side { | ||
access_point { | ||
type = "METAL_NETWORK" | ||
authentication_key = "<metal_authorization_code>" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
resource "equinix_metal_vlan" "example1" { | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
} | ||
resource "equinix_metal_connection" "example" { | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
} | ||
data "equinix_fabric_service_profiles" "zside" { | ||
count = var.zside_ap_type == "SP" ? 1 : 0 | ||
filter { | ||
property = "/name" | ||
operator = "=" | ||
values = ["AWS Direct Connect"] | ||
} | ||
} | ||
resource "equinix_fabric_connection" "example" { | ||
name = "tf-NIMF-metal-2-aws-legacy" | ||
type = "EVPL_VC" | ||
notifications { | ||
type = "ALL" | ||
emails = "[email protected]" | ||
} | ||
project { | ||
project_id = local.fabric_project_id | ||
} | ||
bandwidth = "200" | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
a_side { | ||
access_point { | ||
type = "METAL_NETWORK" | ||
authentication_key = equinix_metal_connection.metal-connection.authorization_code | ||
} | ||
} | ||
z_side { | ||
access_point { | ||
type = "SP" | ||
authentication_key = local.aws_account_id | ||
seller_region = "us-west-1" | ||
profile { | ||
type = "L2_PROFILE" | ||
uuid = data.equinix_fabric_service_profiles.zside[0].id | ||
} | ||
location { | ||
metro_code ="SV" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
resource "equinix_metal_vlan" "example1" { | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
} | ||
resource "equinix_metal_connection" "example" { | ||
name = "tf-port-to-metal-legacy" | ||
project_id = local.my_project_id | ||
metro = "SV" | ||
redundancy = "redundant" | ||
type = "shared" | ||
contact_email = "[email protected]" | ||
vlans = [ | ||
equinix_metal_vlan.example1.vxlan, | ||
equinix_metal_vlan.example2.vxlan | ||
] | ||
} | ||
resource "equinix_fabric_connection" "example" { | ||
name = "tf-NIMF-metal-2-aws-legacy" | ||
type = "EVPL_VC" | ||
notifications { | ||
type = "ALL" | ||
emails = "[email protected]" | ||
} | ||
project { | ||
project_id = local.fabric_project_id | ||
} | ||
bandwidth = "200" | ||
order { | ||
purchase_order_number = "1-323292" | ||
} | ||
a_side { | ||
access_point { | ||
type = "METAL_NETWORK" | ||
authentication_key = equinix_metal_connection.metal-connection.authorization_code | ||
} | ||
} | ||
z_side { | ||
access_point { | ||
type = "SP" | ||
authentication_key = local.aws_account_id | ||
seller_region = "us-west-1" | ||
profile { | ||
type = "L2_PROFILE" | ||
uuid = data.equinix_fabric_service_profiles.zside[0].id | ||
} | ||
location { | ||
metro_code ="SV" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters