Terraform-IaC/template/hetzner-infra/modules/server/primary_ip.tf

23 lines
620 B
Terraform
Raw Permalink Normal View History

2023-07-09 17:05:29 +01:00
# resource "hcloud_primary_ip" "main_ipv4" {
# name = "pip-${var.server_name}-ipv4"
# type = "ipv4"
# assignee_type = "server"
# auto_delete = false
# assignee_id = hcloud_server.server.id
# labels = merge(
# var.labels,
# { "Resource_Type" = "Primary_IP" }
# )
# }
# resource "hcloud_primary_ip" "main_ipv6" {
# name = "pip-${var.server_name}-ipv6"
# type = "ipv6"
# assignee_type = "server"
# assignee_id = hcloud_server.server.id
# auto_delete = false
# labels = merge(
# var.labels,
# { "Resource_Type" = "Primary_IP" }
# )
# }