diff --git a/terraform/.terraform.lock.hcl b/terraform/.terraform.lock.hcl index 3f15716..01031fb 100644 --- a/terraform/.terraform.lock.hcl +++ b/terraform/.terraform.lock.hcl @@ -193,42 +193,3 @@ provider "registry.terraform.io/linode/linode" { "zh:ee653d5d08cb331ce2d8dc1010e68d363470ae87be62c0515e5d2418727cd02b", ] } - -provider "registry.terraform.io/vultr/vultr" { - version = "2.15.1" - constraints = "2.15.1" - hashes = [ - "h1:AciB7z6kOuQ38hj5KF36TfNOQ/EG6qvOwOrw/xyXFCE=", - "h1:D5LsfIqh6q65OZbnzyKBUKvyT7RS5X2pmVfpvli+vAU=", - "h1:I1B1O9prykxPZYU3pio/elicrxDnepHcZ29cNQf61sE=", - "h1:J+OVWX6X75fsHMwiZB9iAopDmAN5+g9pPdzTivIuBOU=", - "h1:KHJZCIYqYj7xyKNUmTjZmT4QRTUm8p54lMT9XDyvJP4=", - "h1:LVysYnCnT2klTVoyDXWh+kf8vXu3cGFxzycU3+W3ckY=", - "h1:SlyY3hvHKdu1HdmYTiI5Xa1ybCk9tnE+6JWx59PssZc=", - "h1:YvzGCnccC11zjyzEC5UOoqu2jJGAEeePhYCuagssc/A=", - "h1:e1ghn6CaOkQ/GHDm1j0tHG7aWkUDk1CDtetxhAOFzGc=", - "h1:eyjffzSCPTU6QKgIoBuWlY8iu/8Y4LkenOrVoJ323fo=", - "h1:h/JLDaNJa5tHHYgdfcDmW5v+zV41uLOqwTBV4ERXHdg=", - "h1:hLWCN0weDF5vWN70J6jgqQ9Jo84fqWR+fVtg2lI9btk=", - "h1:mJml7zoGyIxixUIMJ2rQZfEhUaa4eZwOXw+vSseQAwE=", - "h1:nPFcEAJDDNToKJvqoqxibRln3ghwnWEknr32LHar13s=", - "h1:uO6TU4uZ39JiPI35XdF/KYn5JS9AmKlNtXq4CRxl3OM=", - "h1:xRg3puZ3qdBQl4iQi8mkTBow65QcSDgxLfc3lVIamkc=", - "zh:127ffccc84f73acc0761da41a8be57b5c5959e978482e5a79736aeaf1883ed75", - "zh:2c48adaa21734f1266d25cd0bb4f3c9abc621aeacf43461dddaac467be9942c5", - "zh:3b228f9462a44c24d18270a8f7013481aca754dac18f7848d230ca9e2e8a98ec", - "zh:7f1f462d27779cf12c735eba907bf34dcbee994db4aef542e101335157ac6c5e", - "zh:83e97675b305c104d4d7385603b417f348bcbe6cadae7427614bd43e3c628073", - "zh:8d7ec10a7d354a98ee5f69a6faed1d70f8f2f1986836af69e7187f206bf9eeeb", - "zh:a55b091d5486103948ab870eb7b85c981f6701b619948ce0b31416bbc7fa4315", - "zh:b65ce42839c1473ee655e1fe7e93928da44ce8d4d8b43aafe62be935a9d37728", - "zh:cb018b0e60de41bdec80275bb02c646cfd8cf84ec6178756d163b03941d3fed9", - "zh:cc2ebbd4a10314f75391eb8c29aa7091f098cc8955965facf8657d4b3d512625", - "zh:d0dcc2212d271cf6735313477e99e3bc4a9a7ae528989da046f706fdda3f3666", - "zh:d77e50c2037a0059e4642fcd7ab8526b1fd22a0f77e9aeba029cf7a095f7ca52", - "zh:d87eba3f9606b055718611376fc706be4098b153b37059a3c8a4d18c9e6a59a6", - "zh:df467914985e3cd555ada0617887d8fe04fabd30f7c1a7993a02b325f2f3ec78", - "zh:e64e2d9d5c76355a0995b918a4986cdef933b879fb8345eae404548e0b05b54d", - "zh:e74df2364a266dfae7de60bdb87e609b2ebb0ded2926003baa803f8c05290a76", - ] -} diff --git a/terraform/providers.tf b/terraform/providers.tf index fab6ffc..156608a 100644 --- a/terraform/providers.tf +++ b/terraform/providers.tf @@ -1,9 +1,3 @@ -provider "vultr" { - api_key = var.vultr_api_key - rate_limit = 1500 - retry_limit = 5 -} - provider "cloudflare" { email = var.cloudflare_email api_key = var.cloudflare_api_key diff --git a/terraform/terraform.tf b/terraform/terraform.tf index 62d6b6f..06e2f2b 100644 --- a/terraform/terraform.tf +++ b/terraform/terraform.tf @@ -4,10 +4,6 @@ terraform { source = "cloudflare/cloudflare" version = "2.27.0" } - vultr = { - source = "vultr/vultr" - version = "2.15.1" - } aws = { source = "hashicorp/aws" version = "4.67.0" diff --git a/terraform/variables.tf b/terraform/variables.tf index d953940..5ebe89f 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,7 +1,3 @@ -variable "vultr_api_key" { - sensitive = true -} - variable "cloudflare_api_key" { sensitive = true } diff --git a/terraform/vultr_firewall/group.tf b/terraform/vultr_firewall/group.tf deleted file mode 100644 index 72800fb..0000000 --- a/terraform/vultr_firewall/group.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "vultr_firewall_group" "group" { - description = var.description -} diff --git a/terraform/vultr_firewall/outputs.tf b/terraform/vultr_firewall/outputs.tf deleted file mode 100644 index 019116e..0000000 --- a/terraform/vultr_firewall/outputs.tf +++ /dev/null @@ -1,3 +0,0 @@ -output "firewall_group" { - value = vultr_firewall_group.group -} diff --git a/terraform/vultr_firewall/ping.tf b/terraform/vultr_firewall/ping.tf deleted file mode 100644 index efcb033..0000000 --- a/terraform/vultr_firewall/ping.tf +++ /dev/null @@ -1,15 +0,0 @@ -resource "vultr_firewall_rule" "ping" { - firewall_group_id = vultr_firewall_group.group.id - protocol = "icmp" - ip_type = "v4" - subnet = "0.0.0.0" - subnet_size = 0 -} - -resource "vultr_firewall_rule" "pingv6" { - firewall_group_id = vultr_firewall_group.group.id - protocol = "icmp" - ip_type = "v6" - subnet = "::" - subnet_size = 0 -} diff --git a/terraform/vultr_firewall/rules.tf b/terraform/vultr_firewall/rules.tf deleted file mode 100644 index f6363e1..0000000 --- a/terraform/vultr_firewall/rules.tf +++ /dev/null @@ -1,21 +0,0 @@ -resource "vultr_firewall_rule" "v4" { - for_each = toset(var.ports) - - firewall_group_id = vultr_firewall_group.group.id - protocol = split("/", each.value)[1] - port = split("/", each.value)[0] - ip_type = "v4" - subnet = "0.0.0.0" - subnet_size = 0 -} - -resource "vultr_firewall_rule" "v6" { - for_each = toset(var.ports) - - firewall_group_id = vultr_firewall_group.group.id - protocol = split("/", each.value)[1] - port = split("/", each.value)[0] - ip_type = "v6" - subnet = "::" - subnet_size = 0 -} diff --git a/terraform/vultr_firewall/terraform.tf b/terraform/vultr_firewall/terraform.tf deleted file mode 100644 index d543202..0000000 --- a/terraform/vultr_firewall/terraform.tf +++ /dev/null @@ -1,8 +0,0 @@ -terraform { - required_providers { - vultr = { - source = "vultr/vultr" - version = "2.15.1" - } - } -} diff --git a/terraform/vultr_firewall/variables.tf b/terraform/vultr_firewall/variables.tf deleted file mode 100644 index d10f9c9..0000000 --- a/terraform/vultr_firewall/variables.tf +++ /dev/null @@ -1,2 +0,0 @@ -variable "ports" {} -variable "description" {}