-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
68 lines (62 loc) · 2.08 KB
/
main.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
62
63
64
65
66
67
68
module "hcloud_ssh_key" {
source = "dhoppeIT/ssh_key/hcloud"
version = "~> 0.2"
name = "terraform"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8tGf28OHlZaFvX7gPAlUrRI1f/dF45Wfwi8wn2qZ/ZwHTk6eV9lTgJ/NbCuykElib1d13hltDtEaPaGLKOkG/EHRVjirpnkIVdZYJ2XKcMc82kf5dsve9SZsJkrsbhqssA+CtEHHFECwCY6HFbwXxFfHNGl2F49CUITVWMzs2hxU0GtZfkXpF9GIjbm+FwWpLlYJMjbMZfVsFEHm6PJLzDnVOWtQEMgyO9zOyJScSK7lWqNTw7y8Fnrsb1lAbaqbJRPzuWGkPnfu46rINtqISvCQHfUpc1GLli+kYYmU/A3tPAM63R2Zd4BmOt/8PlNT32vBtLna8bbQfk6czcMv13gZtkQ36mGWrlNiawAKFlKMOhWoDxqPlZdPkBb/5EYVCQtro4LLmr+cji9pDLbZI3DHzvAFslciSXezN8/NVCCHawFV68SAU8397ph1vKIjdXWRBZ9l/hmif920f2ACxGkoCp8wC6+JnCpR2soo2Yu+l7RTxxpGZuJVarwgLVYaTXDOpyUyRSA1K8bnIjZNiR0/HCQtb94qWbXA6SrEJUNsqzR1ivvbnEMQ115Oi3uvBg/Los7FGKYVuyvz9Z64GC+MUrwxjdEEOsjWIY+A9dVautWkhVb3rXU/dmMbOnN3GHYw6VzcFOIY3wQgEihFAWv35RCbTmtXN906axvCLKw== Terraform"
}
module "hcloud_network" {
source = "dhoppeIT/network/hcloud"
version = "~> 0.3"
name = "private"
ip_range_network = "10.0.0.0/16"
type = "cloud"
ip_range_subnet = ["10.0.0.0/24"]
network_zone = "eu-central"
}
module "hcloud_firewall" {
source = "dhoppeIT/firewall/hcloud"
version = "~> 0.2"
name = "default"
rule = [
{
direction = "in"
protocol = "icmp"
source_ips = ["0.0.0.0/0"]
},
{
direction = "in"
protocol = "tcp"
port = "22"
source_ips = ["0.0.0.0/0"]
},
{
direction = "out"
protocol = "icmp"
destination_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 = "out"
protocol = "tcp"
port = "80"
destination_ips = ["0.0.0.0/0"]
},
{
direction = "out"
protocol = "tcp"
port = "443"
destination_ips = ["0.0.0.0/0"]
}
]
}