Skip to content

Commit 4c2b24b

Browse files
authored
update equinix terraform provider (#609)
* update equinix terraform provider * match region order
1 parent f4dd878 commit 4c2b24b

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

deploy/.terraform.lock.hcl

Lines changed: 18 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ provider "aws" {
1010
region = "us-east-1"
1111
}
1212

13-
resource "metal_device" "device" {
13+
resource "equinix_metal_device" "device" {
1414
count = var.device_count
1515

1616
project_id = var.project_id
17-
facilities = var.region
17+
metro = var.region[count.index]
1818
hostname = "${var.tg_hostname}-${count.index}"
1919
billing_cycle = "hourly"
2020
operating_system = var.tg_os
@@ -24,6 +24,6 @@ resource "metal_device" "device" {
2424
}
2525

2626
output "device_ids" {
27-
value = metal_device.device.*.id
27+
value = equinix_metal_device.device.*.id
2828
}
2929

deploy/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ variable "instance_type" {
66

77
variable "region" {
88
type = list(string)
9-
default = ["sv15", "sv16", "da11", "da11", "dc13"]
9+
default = ["dc", "dc", "sv", "sv", "sv"]
1010
description = "Packet regions to deploy testgrid"
1111
}
1212

deploy/versions.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ terraform {
44
source = "hashicorp/aws"
55
version = ">= 4.5.0"
66
}
7-
metal = {
8-
source = "equinix/metal"
9-
version = "3.1.0"
7+
equinix = {
8+
source = "equinix/equinix"
9+
version = "1.34.0"
1010
}
1111
}
1212
required_version = ">= 1.0.0"

0 commit comments

Comments
 (0)