layout | page_title | sidebar_current | description |
---|---|---|---|
cherryservers |
CherryServers: cherryservers_ip |
docs-cherryservers-resource-ip |
Provides a CherryServers IP resource. This can be used to create, modify, and delete Static IP addresses. These IPs can be added to your server and have the network interfaces configured at creation time. |
Provides a CherryServers IP resource. This can be used to create, modify, and delete IP.
# Optionally configure the Region to launch in as a variable or specify inline below
variable "region" {
default = "EU-East-1"
}
# To see how to configure a project, see the Cherryservers_project documentation.
# You will need to have an existing project in order to reserve an IP resource. You do not need to specify the Routing options.
resource "cherryservers_ip" "my_ip_address" {
project_id = "${cherryservers_project.myproject.id}"
region = "${var.region}"
routed_to_ip = "127.0.0.1" # Optional
}
The following arguments are supported:
project_id
- (Required) The Project ID to deploy the IP in.region
- (Required) The region to deply in.routed_to_hostname
- (Optional) A hostname to route network traffic torouted_to_ip
- (Optional) An IP address to route network traffic to
The following attributes are exported:
id
- The ID of the IP Addressaddress
- The address of the IP eg. 127.0.0.1cidr
- The CIDR block of the IPgateway
- The Gateway address for the IPa_record
- Public A record which points to the assigned IP addressptr_record
- The PTR record that resolves to the IP addresstype
- The type of IProuted_to
- The hostname or IP that the IP routes toregion
- The region of the IP
IPs can be imported using the IP id
, e.g.
terraform import cherryservers_ip.my_ip_address 123