FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

clc_public_ip

Manages a CLC public ip (for an existing server).

See also Complete API documentation.

Example Usage

# Provision a public ip
resource "clc_public_ip" "backdoor" {
  server_id = "${clc_server.node.0.id}"
  internal_ip_address = "${clc_server.node.0.private_ip_address}"
  ports
    {
      protocol = "ICMP"
      port = -1
    }
  ports
    {
      protocol = "TCP"
      port = 22
    }
  ports
    {
      protocol = "TCP"
      port = 2000
      port_to = 9000
    }
  source_restrictions
     { cidr = "85.39.22.15/30" }
}


output "ip" {
  value = "clc_public_ip.backdoor.id"
}

Argument Reference

The following arguments are supported:

Ports

ports is a block within the configuration that may be repeated to specify open ports on the target IP. Each ports block supports the following:

SourceRestrictions

source_restrictions is a block within the configuration that may be repeated to restrict ingress traffic on specified CIDR blocks. Each source_restrictions block supports the following:


See the source of this document at Terraform.io