Skip to content

Commit

Permalink
refactor(ionos): remove ipblock and firewall as unnecessary for now
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Aug 9, 2024
1 parent caed85d commit 15a6b6a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
20 changes: 0 additions & 20 deletions envs/ionos-test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions envs/ionos-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ data "ionoscloud_image" "lti_tool" {
location = "us/las"
}

resource "ionoscloud_ipblock" "ipblock" {
location = ionoscloud_datacenter.serlo_datacenter.location
size = 1
name = "IP Block Example"
}

resource "ionoscloud_server" "lti_tool_server" {
name = "Server Example"
datacenter_id = ionoscloud_datacenter.serlo_datacenter.id
Expand All @@ -56,19 +50,6 @@ resource "ionoscloud_server" "lti_tool_server" {
lan = ionoscloud_lan.serlo_lan.id
name = "system"
dhcp = true
firewall_active = true
firewall_type = "BIDIRECTIONAL"
ips = [ionoscloud_ipblock.ipblock.ips[0]]
firewall {
protocol = "TCP"
name = "SSH"
port_range_start = 22
port_range_end = 22
source_mac = "00:0a:95:9d:68:17"
# source_ip = ionoscloud_ipblock.ipblock.ips[2]
# target_ip = ionoscloud_ipblock.ipblock.ips[3]
type = "EGRESS"
}
}
}

Expand Down

0 comments on commit 15a6b6a

Please sign in to comment.