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.
update provider version and improve provider config in examples
- Loading branch information
Oscar Cobles
committed
Jul 22, 2022
1 parent
2c5b4d0
commit 7ce2dc6
Showing
9 changed files
with
73 additions
and
20 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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
provider "equinix" {} | ||
# Configure the Equinix Provider | ||
# Please refer to provider documentation for details on supported authentication methods and parameters. | ||
# https://registry.terraform.io/providers/equinix/equinix/latest/docs | ||
provider "equinix" { | ||
client_id = var.equinix_provider_client_id | ||
client_secret = var.equinix_provider_client_secret | ||
} | ||
|
||
# Configure the Google Cloud Platform Provider | ||
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started#adding-credentials | ||
provider "google" { | ||
project = var.project_name | ||
project = var.gcp_project | ||
# 'region' and 'fabric_destination_metro_code' must correspond to same location. | ||
# If unspecified, it will use the default region configured with gcloud CLI. | ||
region = "europe-west3" | ||
} | ||
|
||
module "equinix-fabric-connection-gcp" { | ||
source = "github.com/equinix-labs/terraform-equinix-fabric-connection-gcp" | ||
source = "equinix-labs/fabric-connection-gcp/equinix" | ||
|
||
# required variables | ||
fabric_notification_users = ["[email protected]"] | ||
|
||
# optional variables | ||
fabric_port_name = var.port_name | ||
fabric_port_name = var.fabric_port_name | ||
fabric_vlan_stag = 1010 | ||
fabric_destination_metro_code = "FR" | ||
} |
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 |
---|---|---|
@@ -1,12 +1,27 @@ | ||
variable "project_name" { | ||
variable "equinix_provider_client_id" { | ||
type = string | ||
description = "The default GCP project to manage resources in." | ||
description = <<EOF | ||
API Consumer Key available under 'My Apps' in developer portal. This argument can also be specified with the | ||
EQUINIX_API_CLIENTID shell environment variable. | ||
EOF | ||
default = null | ||
} | ||
|
||
variable "port_name" { | ||
variable "equinix_provider_client_secret" { | ||
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. | ||
API Consumer secret available under 'My Apps' in developer portal. This argument can also be specified with the | ||
EQUINIX_API_CLIENTSECRET shell environment variable. | ||
EOF | ||
default = null | ||
} | ||
|
||
variable "gcp_project" { | ||
type = string | ||
description = "(Required) Name of the GCP project to manage resources in." | ||
} | ||
|
||
variable "fabric_port_name" { | ||
type = string | ||
description = "(Required) 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." | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
provider "equinix" {} | ||
# Configure the Equinix Provider | ||
# Please refer to provider documentation for details on supported authentication methods and parameters. | ||
# https://registry.terraform.io/providers/equinix/equinix/latest/docs | ||
provider "equinix" { | ||
client_id = var.equinix_provider_client_id | ||
client_secret = var.equinix_provider_client_secret | ||
} | ||
|
||
# Configure the Google Cloud Platform Provider | ||
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started#adding-credentials | ||
provider "google" { | ||
project = var.project_name | ||
project = var.gcp_project | ||
# 'region' and 'fabric_destination_metro_code' must correspond to same location. | ||
# If unspecified, it will use the default region configured with gcloud CLI. | ||
region = "europe-west3" | ||
} | ||
|
||
module "equinix-fabric-connection-gcp" { | ||
source = "github.com/equinix-labs/terraform-equinix-fabric-connection-gcp" | ||
source = "equinix-labs/fabric-connection-gcp/equinix" | ||
|
||
# required variables | ||
fabric_notification_users = ["[email protected]"] | ||
|
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