generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
414 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Fabric Port Connection Example | ||
|
||
This example demonstrates usage of the Equinix Connection module to establish a non-redundant Equinix Fabric L2 Connection from a Equinix Fabric port to Google Cloud Interconnect. It will: | ||
|
||
- Use VPC 'default' | ||
- Use project specified in provider | ||
- Create a Google Cloud Router | ||
- Create a Google Cloud Interconnect/VLAN Attachment | ||
- Create an Equinix Fabric l2 connection with minimun available bandwidth for Google Cloud service profile | ||
|
||
## Usage | ||
|
||
To provision this example, you should clone the github repository and run terraform from within this directory: | ||
|
||
```bash | ||
git clone https://github.com/equinix-labs/terraform-equinix-fabric-connection-gcp.git | ||
cd terraform-equinix-fabric-connection-gcp/examples/fabric-port-connection | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run 'terraform destroy' when you don't need these resources. | ||
|
||
## Variables | ||
|
||
See <https://registry.terraform.io/modules/equinix-labs/fabric-connection-gcp/equinix/latest/examples/fabric-port-connection?tab=inputs> for a description of all variables. | ||
|
||
## Outputs | ||
|
||
See <https://registry.terraform.io/modules/equinix-labs/fabric-connection-gcp/equinix/latest/examples/fabric-port-connection?tab=outputs> for a description of all outputs. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "connection_details" { | ||
value = module.equinix-fabric-connection-gcp | ||
} |
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,12 @@ | ||
variable "project_name" { | ||
type = string | ||
description = "The default GCP project to manage resources in." | ||
} | ||
|
||
variable "port_name" { | ||
type = string | ||
description = <<EOF | ||
Name of the [Equinix Fabric port](https://docs.equinix.com/en-us/Content/Interconnection/Fabric/ports/Fabric-port-details.htm) | ||
from which the connection would originate. | ||
EOF | ||
} |
File renamed without changes.
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,31 @@ | ||
# Network Edge Device Connection Example | ||
|
||
This example demonstrates usage of the Equinix Connection module to establish a non-redundant Equinix Fabric L2 Connection from a Equinix Network Edge device to Google Cloud Interconnect. It will: | ||
|
||
- Use 'default' VPC | ||
- Use the `project` specified in provider | ||
- Create a Google Cloud Router | ||
- Create a Google Cloud Interconnect/VLAN Attachment | ||
- Create Equinix Fabric l2 connection with 200 Mbps bandwidth | ||
- Configure BGP session between the GCP cloud router and your Network Edge device | ||
|
||
## Usage | ||
|
||
To provision this example, you should clone the github repository and run terraform from within this directory: | ||
|
||
```bash | ||
git clone https://github.com/equinix-labs/terraform-equinix-fabric-connection-gcp.git | ||
cd terraform-equinix-fabric-connection-gcp/examples/network-edge-device-connection | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
Note that this example may create resources which cost money. Run 'terraform destroy' when you don't need these resources. | ||
|
||
## Variables | ||
|
||
See <https://registry.terraform.io/modules/equinix-labs/fabric-connection-gcp/equinix/latest/examples/network-edge-device-connection?tab=inputs> for a description of all variables. | ||
|
||
## Outputs | ||
|
||
See <https://registry.terraform.io/modules/equinix-labs/fabric-connection-gcp/equinix/latest/examples/network-edge-device-connection?tab=outputs> for a description of all outputs. |
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,23 @@ | ||
provider "equinix" {} | ||
|
||
provider "google" { | ||
project = var.project_name | ||
region = "europe-west3" | ||
} | ||
|
||
module "equinix-fabric-connection-gcp" { | ||
source = "github.com/equinix-labs/terraform-equinix-fabric-connection-gcp" | ||
|
||
# required variables | ||
fabric_notification_users = ["[email protected]"] | ||
|
||
# optional variables | ||
network_edge_device_id = var.device_id | ||
network_edge_configure_bgp = true | ||
|
||
fabric_destination_metro_code = "FR" | ||
fabric_speed = 200 | ||
|
||
platform = "darwin" | ||
gcp_gcloud_skip_download = true | ||
} |
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,30 @@ | ||
output "fabric_connection_id" { | ||
value = module.equinix-fabric-connection-gcp.fabric_connection_uuid | ||
} | ||
|
||
output "fabric_connection_name" { | ||
value = module.equinix-fabric-connection-gcp.fabric_connection_name | ||
} | ||
|
||
output "fabric_connection_status" { | ||
value = module.equinix-fabric-connection-gcp.fabric_connection_status | ||
} | ||
|
||
output "fabric_connection_provider_status" { | ||
value = module.equinix-fabric-connection-gcp.fabric_connection_provider_status | ||
} | ||
|
||
output "network_edge_bgp_provisioning_status" { | ||
description = "Network Edge device BGP peering configuration provisioning status." | ||
value = module.equinix-fabric-connection-gcp.network_edge_bgp_provisioning_status | ||
} | ||
|
||
output "gcp_interconnect_id" { | ||
description = "Google Cloud Interconnect/VLAN attachment ID." | ||
value = module.equinix-fabric-connection-gcp.gcp_interconnect_id | ||
} | ||
|
||
output "gcp_cloud_router_id" { | ||
description = "Google Cloud Router ID." | ||
value = module.equinix-fabric-connection-gcp.gcp_cloud_router_id | ||
} |
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,12 @@ | ||
variable "project_name" { | ||
type = string | ||
description = "The default GCP project to manage resources in." | ||
} | ||
|
||
variable "device_id" { | ||
type = string | ||
description = <<EOF | ||
The ID of the (Network Edge virtual device](https://github.com/equinix/terraform-provider-equinix/tree/master/examples/edge-networking) | ||
from which the connection would originate. | ||
EOF | ||
} |
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,14 @@ | ||
terraform { | ||
required_version = ">= 0.13" | ||
|
||
required_providers { | ||
equinix = { | ||
source = "equinix/equinix" | ||
version = ">= 1.5.0" | ||
} | ||
google = { | ||
source = "hashicorp/google" | ||
version = ">= 3.72.0" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.