forked from aeternity/terraform-hetzner-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipfs.tf
61 lines (61 loc) · 1.63 KB
/
ipfs.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
54
55
56
57
58
59
60
61
module "ipfs-node" {
source = "./modules/tf_hetzner_servers"
network_id = module.network.network_id
instance_count = local.config.common_instance_count
name = "ipfs-${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
internal_dns_record = false
attach_dns = true
dns_record = {
dns_name = "ipfs.${local.env_human}.service"
dns_record_type = "A"
dns_ttl = "300"
dns_zone_id = data.aws_route53_zone.aepps.id
}
firewall_rules = [
{
direction = "in"
protocol = "tcp"
port = "22"
source_ips = ["0.0.0.0/0"]
},
{
direction = "out"
protocol = "tcp"
port = "53"
destination_ips = ["0.0.0.0/0"]
},
{
direction = "out"
protocol = "udp"
port = "53"
destination_ips = ["0.0.0.0/0"]
},
{
direction = "in"
protocol = "tcp"
port = "5001"
source_ips = ["0.0.0.0/0"]
},
{
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"]
},
]
}