aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yandex
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-08-08 16:01:27 +0200
committerEgor Tensin <egor@tensin.name>2026-08-08 16:01:27 +0200
commita0e21763dcde280b0deda92d771a86f6c7a097da (patch)
tree686158dac74befa5ed33194f79a37254affc507f /yandex
parentmove away from reserved IPs for DO (diff)
downloadinfra-terraform-2.0.0.tar.gz
infra-terraform-2.0.0.zip
remove unused firewall codeHEADv2.0.0master
Diffstat (limited to 'yandex')
-rw-r--r--yandex/firewall/main.tf25
-rw-r--r--yandex/firewall/outputs.tf3
-rw-r--r--yandex/firewall/providers.tf7
-rw-r--r--yandex/firewall/variables.tf9
4 files changed, 0 insertions, 44 deletions
diff --git a/yandex/firewall/main.tf b/yandex/firewall/main.tf
deleted file mode 100644
index 81dc26a..0000000
--- a/yandex/firewall/main.tf
+++ /dev/null
@@ -1,25 +0,0 @@
-resource "yandex_vpc_security_group" "this" {
- network_id = var.vpc_id
-
- name = var.name
-
- ingress {
- protocol = "ICMP"
- v4_cidr_blocks = ["0.0.0.0/0"]
- }
-
- dynamic "ingress" {
- for_each = var.open_ports
-
- content {
- protocol = "ANY"
- v4_cidr_blocks = ["0.0.0.0/0"]
- port = ingress.value
- }
- }
-
- egress {
- protocol = "ANY"
- v4_cidr_blocks = ["0.0.0.0/0"]
- }
-}
diff --git a/yandex/firewall/outputs.tf b/yandex/firewall/outputs.tf
deleted file mode 100644
index 72058aa..0000000
--- a/yandex/firewall/outputs.tf
+++ /dev/null
@@ -1,3 +0,0 @@
-output "id" {
- value = yandex_vpc_security_group.this.id
-}
diff --git a/yandex/firewall/providers.tf b/yandex/firewall/providers.tf
deleted file mode 100644
index 3a5782f..0000000
--- a/yandex/firewall/providers.tf
+++ /dev/null
@@ -1,7 +0,0 @@
-terraform {
- required_providers {
- yandex = {
- source = "yandex-cloud/yandex"
- }
- }
-}
diff --git a/yandex/firewall/variables.tf b/yandex/firewall/variables.tf
deleted file mode 100644
index 04e111a..0000000
--- a/yandex/firewall/variables.tf
+++ /dev/null
@@ -1,9 +0,0 @@
-variable "name" {
- type = string
-}
-variable "vpc_id" {
- type = string
-}
-variable "open_ports" {
- type = list(number)
-}