diff options
Diffstat (limited to 'vps.tf')
| -rw-r--r-- | vps.tf | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,6 @@ variable "do_token" {} variable "ssh_fingerprint" {} +variable "floating_ip" {} provider "digitalocean" { token = "${var.do_token}" @@ -30,3 +31,8 @@ resource "digitalocean_droplet" "vps" { script = "./deploy.sh" } } + +resource "digitalocean_floating_ip_assignment" "vps" { + ip_address = "${var.floating_ip}" + droplet_id = "${digitalocean_droplet.vps.id}" +}
\ No newline at end of file |
