Skip to content

Commit

Permalink
Merge pull request #5 from fr3fou/patch-1
Browse files Browse the repository at this point in the history
Update for Terraform >= 0.13
  • Loading branch information
andrewsomething authored Nov 4, 2021
2 parents 979e45e + 7555ab9 commit 6898077
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}

data "http" "cloudflare_ip4_addrs" {
url = "https://www.cloudflare.com/ips-v4"
}
Expand Down Expand Up @@ -29,4 +38,4 @@ resource "digitalocean_firewall" "inbound_cloudflare" {
split("\n", trimspace(data.http.cloudflare_ip6_addrs.body))
)
}
}
}

0 comments on commit 6898077

Please sign in to comment.