You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides a DigitalOcean Floating IP to represent a publicly-accessible static IP addresses that can be mapped to one of your Droplets.
12
+
13
+
## Example Usage
14
+
15
+
```
16
+
resource "digitalocean_droplet" "foobar" {
17
+
name = "baz"
18
+
size = "1gb"
19
+
image = "centos-5-8-x32"
20
+
region = "sgp1"
21
+
ipv6 = true
22
+
private_networking = true
23
+
}
24
+
25
+
resource "digitalocean_floating_ip" "foobar" {
26
+
droplet_id = "${digitalocean_droplet.foobar.id}"
27
+
}
28
+
```
29
+
30
+
## Argument Reference
31
+
32
+
The following arguments are supported:
33
+
34
+
*`region` - (Optional) The region that the Floating IP is reserved to.
35
+
*`droplet_id` - (Optional) The ID of Droplet that the Floating IP will be assigned to.
36
+
37
+
~> **NOTE:** A Floating IP can be assigned to a region OR a droplet_id. If both region AND droplet_id are specified, then the Floating IP will be assigned to the droplet and use that region
0 commit comments