Skip to content

[baremetal_server] Accessing to VLAN ID #1870

Answered by lperdereau
lperdereau asked this question in Q&A
Discussion options

You must be logged in to vote

Finally finding a way

locals {
  cps = [
    {
      cp_public_ip_address = [for ip in scaleway_baremetal_server.control_plane_1.ips : ip if ip.version == "IPv4"][0].address,
      vlan_id = [for pn in scaleway_baremetal_server.control_plane_1.private_network : pn][0].vlan
    },
    {
      cp_public_ip_address = [for ip in scaleway_baremetal_server.control_plane_2.ips : ip if ip.version == "IPv4"][0].address,
      vlan_id = [for pn in scaleway_baremetal_server.control_plane_2.private_network : pn][0].vlan
    }
  ]
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lperdereau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant