Compare commits

..

No commits in common. "main" and "update-variables" have entirely different histories.

3 changed files with 11 additions and 17 deletions

View file

@ -12,7 +12,6 @@ resource "stackit_network" "lan_network1" {
project_id = module.project.project_info["project1"].project_id
name = "lan_network1"
ipv4_prefix = "10.220.1.0/24"
ipv4_nameservers = []
routed = true
}
@ -20,7 +19,6 @@ resource "stackit_network" "lan_network2" {
project_id = module.project.project_info["project1"].project_id
name = "lan_network2"
ipv4_prefix = "10.220.2.0/24"
ipv4_nameservers = []
routed = true
}
@ -28,7 +26,6 @@ resource "stackit_network" "lan_network3" {
project_id = module.project.project_info["project1"].project_id
name = "lan_network3"
ipv4_prefix = "10.220.3.0/24"
ipv4_nameservers = []
routed = false
}
@ -38,6 +35,7 @@ resource "stackit_network_interface" "wan" {
security = false
name = "MGMT"
ipv4 = "10.220.0.254"
}
resource "stackit_network_interface" "lan1" {
@ -69,7 +67,6 @@ resource "stackit_network" "p2_lan_network1" {
name = "p2_lan_network"
ipv4_prefix = "10.220.5.0/24"
routed = true
ipv4_nameservers = []
}
resource "stackit_network_interface" "p2_lan1" {
@ -88,7 +85,6 @@ resource "stackit_network" "p3_lan_network1" {
name = "p3_lan_network"
ipv4_prefix = "10.220.6.0/24"
routed = true
ipv4_nameservers = []
}
resource "stackit_network_interface" "p3_lan1" {

View file

@ -6,21 +6,15 @@
resource "stackit_network_area" "sna" {
organization_id = var.organization_id
name = "project_sna"
network_ranges = [
{
prefix = "10.220.0.0/16"
}
]
transfer_network = "172.16.9.0/24"
//depends_on = [time_sleep.wait_before_destroy]
}
resource "stackit_network_area_region" "example" {
organization_id = var.organization_id
network_area_id = stackit_network_area.sna.network_area_id
ipv4 = {
transfer_network = "10.1.2.0/24"
network_ranges = [
{
prefix = "10.220.0.0/16"
}
]
}
}
/* resource "stackit_network_area_route" "sna_route1" {
organization_id = var.organization_id
network_area_id = stackit_network_area.sna.network_area_id

4
terraform.tfvars.example Normal file
View file

@ -0,0 +1,4 @@
organization_id="03a34540-3c1a-4794-b2c6-7111ecf824ef"
service_account_key_path = "/Users/test/.stackit/credentials.json"
public_key_file = "/Users/test/.ssh/test_landing_zone.pub"