Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save displague/52b7dffce2e7560757dce1589340ce21 to your computer and use it in GitHub Desktop.
Save displague/52b7dffce2e7560757dce1589340ce21 to your computer and use it in GitHub Desktop.
Equinix Terraform 1.13 to 1.14 Schema changes
diff --git a/docs/resources/equinix_metal_port_vlan_attachment.md b/docs/resources/equinix_metal_port_vlan_attachment.md
index 7ccb5ea..ac60bb1 100644
--- a/docs/resources/equinix_metal_port_vlan_attachment.md
+++ b/docs/resources/equinix_metal_port_vlan_attachment.md
@@ -6,7 +6,7 @@ subcategory: "Metal"
Provides a resource to attach device ports to VLANs.
-Device and VLAN must be in the same facility.
+Device and VLAN must be in the same metro.
If you need this resource to add the port back to bond on removal, set `force_bond = true`.
@@ -21,15 +21,15 @@ To learn more about Layer 2 networking in Equinix Metal, refer to
```hcl
resource "equinix_metal_vlan" "test" {
- description = "VLAN in New Jersey"
- facility = "ny5"
+ description = "VLAN in New York"
+ metro = "ny"
project_id = local.project_id
}
resource "equinix_metal_device" "test" {
hostname = "test"
plan = "c3.small.x86"
- facilities = ["ny5"]
+ metro = "ny"
operating_system = "ubuntu_20_04"
billing_cycle = "hourly"
project_id = local.project_id
@@ -54,7 +54,7 @@ resource "equinix_metal_port_vlan_attachment" "test" {
resource "equinix_metal_device" "test" {
hostname = "test"
plan = "c3.small.x86"
- facilities = ["ny5"]
+ metro = "ny"
operating_system = "ubuntu_20_04"
billing_cycle = "hourly"
project_id = local.project_id
@@ -66,14 +66,14 @@ resource "equinix_metal_device_network_type" "test" {
}
resource "equinix_metal_vlan" "test1" {
- description = "VLAN in New Jersey"
- facility = "ny5"
+ description = "VLAN in New York"
+ metro = "ny"
project_id = local.project_id
}
resource "equinix_metal_vlan" "test2" {
description = "VLAN in New Jersey"
- facility = "ny5"
+ metro = "ny"
project_id = local.project_id
}
--- /tmp/1.13.yaml 2023-10-24 23:04:14.356371479 +0000
+++ /tmp/1.14.yaml 2023-10-24 23:04:24.300371003 +0000
@@ -810,6 +810,7 @@
optional: true
description: Gateway access point information
description_kind: plain
+ max_items: 1
interface:
nesting_mode: set
block:
@@ -831,6 +832,7 @@
optional: true
description: Virtual device interface
description_kind: plain
+ max_items: 1
link_protocol:
nesting_mode: set
block:
@@ -860,6 +862,7 @@
computed: true
description: Connection link protocol
description_kind: plain
+ max_items: 1
location:
nesting_mode: set
block:
@@ -890,6 +893,7 @@
computed: true
description: Access point location
description_kind: plain
+ max_items: 1
port:
nesting_mode: set
block:
@@ -920,6 +924,7 @@
computed: true
description: Port access point information
description_kind: plain
+ max_items: 1
profile:
nesting_mode: set
block:
@@ -960,6 +965,7 @@
required: true
description: Service Profile
description_kind: plain
+ max_items: 1
routing_protocols:
nesting_mode: list
block:
@@ -1002,8 +1008,10 @@
optional: true
description: Virtual device
description_kind: plain
+ max_items: 1
description: Point of access details
description_kind: plain
+ max_items: 1
additional_info:
nesting_mode: list
block:
@@ -1046,9 +1054,11 @@
optional: true
description: For service token based connections, Service tokens authorize users to access protected resources and services. Resource owners can distribute the tokens to trusted partners and vendors, allowing selected third parties to work directly with Equinix network assets
description_kind: plain
+ max_items: 1
description: Requester or Customer side connection configuration object of the multi-segment connection
description_kind: plain
min_items: 1
+ max_items: 1
additional_info:
nesting_mode: list
block:
@@ -1115,6 +1125,7 @@
optional: true
description: Order related to this connection information
description_kind: plain
+ max_items: 1
project:
nesting_mode: set
block:
@@ -1131,6 +1142,7 @@
computed: true
description: Project information
description_kind: plain
+ max_items: 1
redundancy:
nesting_mode: set
block:
@@ -1147,6 +1159,7 @@
optional: true
description: Redundancy Information
description_kind: plain
+ max_items: 1
timeouts:
nesting_mode: single
block:
@@ -1232,6 +1245,7 @@
optional: true
description: Gateway access point information
description_kind: plain
+ max_items: 1
interface:
nesting_mode: set
block:
@@ -1253,6 +1267,7 @@
optional: true
description: Virtual device interface
description_kind: plain
+ max_items: 1
link_protocol:
nesting_mode: set
block:
@@ -1282,6 +1297,7 @@
computed: true
description: Connection link protocol
description_kind: plain
+ max_items: 1
location:
nesting_mode: set
block:
@@ -1312,6 +1328,7 @@
computed: true
description: Access point location
description_kind: plain
+ max_items: 1
port:
nesting_mode: set
block:
@@ -1342,6 +1359,7 @@
computed: true
description: Port access point information
description_kind: plain
+ max_items: 1
profile:
nesting_mode: set
block:
@@ -1382,6 +1400,7 @@
required: true
description: Service Profile
description_kind: plain
+ max_items: 1
routing_protocols:
nesting_mode: list
block:
@@ -1424,8 +1443,10 @@
optional: true
description: Virtual device
description_kind: plain
+ max_items: 1
description: Point of access details
description_kind: plain
+ max_items: 1
additional_info:
nesting_mode: list
block:
@@ -1468,9 +1489,11 @@
optional: true
description: For service token based connections, Service tokens authorize users to access protected resources and services. Resource owners can distribute the tokens to trusted partners and vendors, allowing selected third parties to work directly with Equinix network assets
description_kind: plain
+ max_items: 1
description: Destination or Provider side connection configuration object of the multi-segment connection
description_kind: plain
min_items: 1
+ max_items: 1
description: |-
Fabric V4 API compatible resource allows creation and management of Equinix Fabric connection
@@ -1662,6 +1685,7 @@
optional: true
description: Api configuration details
description_kind: plain
+ max_items: 1
authentication_key:
nesting_mode: set
block:
@@ -1683,6 +1707,7 @@
optional: true
description: Authentication key details
description_kind: plain
+ max_items: 1
link_protocol_config:
nesting_mode: set
block:
@@ -1704,6 +1729,7 @@
optional: true
description: Link protocol configuration details
description_kind: plain
+ max_items: 1
description: Access point config information
description_kind: plain
account:
@@ -1752,6 +1778,7 @@
optional: true
description: Account
description_kind: plain
+ max_items: 1
custom_fields:
nesting_mode: list
block:
@@ -1828,6 +1855,7 @@
description_kind: plain
description: Marketing Info
description_kind: plain
+ max_items: 1
metros:
nesting_mode: list
block:
@@ -1951,6 +1979,7 @@
computed: true
description: Colo/Port Location
description_kind: plain
+ max_items: 1
description: Ports
description_kind: plain
project:
@@ -1969,6 +1998,7 @@
computed: true
description: Project information
description_kind: plain
+ max_items: 1
timeouts:
nesting_mode: single
block:
@@ -2038,8 +2068,9 @@
description_kind: plain
optional: true
computed: true
- description: ' Device Location'
+ description: Device Location
description_kind: plain
+ max_items: 1
description: Virtual Devices
description_kind: plain
description: |-
@@ -2090,6 +2121,7 @@
type: string
description: Facility where the connection will be created
description_kind: plain
+ deprecated: true
optional: true
computed: true
id:
@@ -2244,6 +2276,7 @@
type: string
description: The facility where the device is deployed
description_kind: plain
+ deprecated: true
computed: true
deployed_hardware_reservation_id:
type: string
@@ -2261,6 +2294,7 @@
- string
description: List of facility codes with deployment preferences. Equinix Metal API will go through the list and will deploy your device to first facility with free capacity. List items must be facility codes or any (a wildcard). To find the facility code, visit [Facilities API docs](https://metal.equinix.com/developers/api/facilities/), set your API auth token in the top of the page and see JSON from the API response. Conflicts with metro
description_kind: plain
+ deprecated: true
optional: true
force_detach_volumes:
type: bool
@@ -3200,6 +3234,7 @@
- string
description: Facility IDs where devices should be created
description_kind: plain
+ deprecated: true
optional: true
computed: true
id:
@@ -3509,6 +3544,7 @@
type: string
description: Facility where to create the VLAN
description_kind: plain
+ deprecated: true
optional: true
id:
type: string
@@ -3517,6 +3553,7 @@
computed: true
metro:
type: string
+ description: Metro in which to create the VLAN
description_kind: plain
optional: true
project_id:
@@ -4556,6 +4593,11 @@
description: The SSH public key. If this is a file, it can be read using the file interpolation function
description_kind: plain
required: true
+ type:
+ type: string
+ description: 'The type of SSH key: RSA (default) or DSA'
+ description_kind: plain
+ optional: true
uuid:
type: string
description: The unique identifier of the key
@@ -5504,7 +5546,7 @@
type: string
used_bandwidth: number
uuid: string
- description: List of Ports
+ description: List of Ports
description_kind: plain
computed: true
id:
@@ -5909,7 +5951,7 @@
type: string
uuid: string
visibility: string
- description: List of Service Profiles
+ description: List of Service Profiles
description_kind: plain
computed: true
id:
@@ -5980,6 +6022,7 @@
type: string
description: Facility which the connection is scoped to
description_kind: plain
+ deprecated: true
computed: true
id:
type: string
@@ -6034,7 +6077,7 @@
computed: true
service_token_type:
type: string
- description: Only used with shared connection. Type of service token to use for the connection, a_side or z_side.
+ description: Only used with shared connection. Type of service token to use for the connection, a_side or z_side
description_kind: plain
computed: true
service_tokens:
@@ -6082,7 +6125,7 @@
type:
- list
- number
- description: Attached vlans, only in shared connection.
+ description: Attached vlans, only in shared connection
description_kind: plain
computed: true
description_kind: plain
@@ -6129,6 +6172,7 @@
type: string
description: The facility where the device is deployed
description_kind: plain
+ deprecated: true
computed: true
hardware_reservation_id:
type: string
@@ -6285,14 +6329,14 @@
type:
- list
- string
- description: The features of this Facility.
+ description: The features of this Facility
description_kind: plain
computed: true
features_required:
type:
- set
- string
- description: Features which the facility needs to have.
+ description: Features which the facility needs to have
description_kind: plain
optional: true
id:
@@ -6302,12 +6346,12 @@
computed: true
metro:
type: string
- description: This facility's metro code.
+ description: This facility's metro code
description_kind: plain
computed: true
name:
type: string
- description: The name of this Facility.
+ description: The name of this Facility
description_kind: plain
computed: true
block_types:
@@ -6324,9 +6368,10 @@
type: number
description_kind: plain
optional: true
- description: Optional capacity specification
+ description: Optional list of capacity specifications by plan
description_kind: plain
description_kind: plain
+ deprecated: true
equinix_metal_gateway:
version: 0
block:
@@ -6384,8 +6429,9 @@
computed: true
facility:
type: string
- description: Plan type for the reservation
+ description: Facility for the reservation
description_kind: plain
+ deprecated: true
computed: true
id:
type: string
@@ -6432,6 +6478,7 @@
type: string
description: Facility code filtering the IP blocks. Global IPv4 blocks will be listed anyway. If you omit this and metro, all the block from the project will be listed
description_kind: plain
+ deprecated: true
optional: true
global_ipv4:
type:
@@ -6488,17 +6535,17 @@
required: true
country:
type: string
- description: The country of this Metro.
+ description: The country of this Metro
description_kind: plain
computed: true
id:
type: string
- description: The ID of this Metro.
+ description: The ID of this Metro
description_kind: plain
computed: true
name:
type: string
- description: The name of this Metro.
+ description: The name of this Metro
description_kind: plain
computed: true
block_types:
@@ -6515,7 +6562,7 @@
type: number
description_kind: plain
optional: true
- description: Optional capacity specification
+ description: Optional list of capacity specifications by plan
description_kind: plain
description_kind: plain
equinix_metal_operating_system:
@@ -7007,6 +7054,7 @@
type: string
description: Facility of the block. (for non-global blocks)
description_kind: plain
+ deprecated: true
computed: true
gateway:
type: string
@@ -7086,6 +7134,7 @@
type: string
description: Name of the facility
description_kind: plain
+ deprecated: true
optional: true
id:
type: string
@@ -7140,6 +7189,7 @@
- string
description: Facility IDs where devices should be created
description_kind: plain
+ deprecated: true
computed: true
id:
type: string
@@ -7325,6 +7375,7 @@
type: string
description: Facility where the VLAN is deployed
description_kind: plain
+ deprecated: true
optional: true
computed: true
id:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment