forked from aeternity/terraform-hetzner-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredis-superhero-backend.tf
53 lines (53 loc) · 1.45 KB
/
redis-superhero-backend.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module "redis-superhero-backend" {
source = "./modules/tf_hetzner_servers"
network_id = module.network.network_id
instance_count = local.config.common_instance_count
name = "redis-superhero-backend-${local.env}"
server_type = local.config.common_server_type
labels = local.standard_tags
image = local.config.common_image
disk_format = local.config.common_disk_format
disk_size = local.config.common_disk_size
ssh_keys = local.config.common_ssh_keys
attach_firewall = true
attached_disk = true
subnet_ids = module.network.private_subnet_id
firewall_rules = [
{
direction = "in"
protocol = "tcp"
port = "22"
source_ips = ["0.0.0.0/0"]
},
{
direction = "in"
protocol = "tcp"
port = "9121"
source_ips = [module.network.network_ip_range]
},
{
direction = "in"
protocol = "tcp"
port = "9100"
source_ips = [module.network.network_ip_range]
},
{
direction = "in"
protocol = "tcp"
port = "6379"
source_ips = [module.network.network_ip_range]
},
{
direction = "out"
protocol = "tcp"
port = "any"
destination_ips = ["0.0.0.0/0"]
},
{
direction = "out"
protocol = "udp"
port = "any"
destination_ips = ["0.0.0.0/0"]
},
]
}