diff --git a/project_old/main.tf b/project_old/main.tf deleted file mode 100644 index 58176f0..0000000 --- a/project_old/main.tf +++ /dev/null @@ -1,34 +0,0 @@ -variable "projects" { - type = map(object({ - name = string - owner_email = string - })) - default = { - project1 = { - name = "project-alpha" - owner_email = "michael.sodan@stackit.cloud" - } - project2 = { - name = "project-beta" - owner_email = "michael.sodan@stackit.cloud" - } - } -} - -resource "stackit_resourcemanager_project" "projects" { - for_each = var.projects - parent_container_id = var.organization_id # Nutzt jetzt die übergebene Variable - name = each.value.name - owner_email = each.value.owner_email - # labels = { ... } # Vorerst entfernt, da stackit_network_area nicht definiert war -} - -output "project_info" { - value = { - for k, project in stackit_resourcemanager_project.projects : k => { - project_id = project.project_id - container_id = project.container_id - } - } -} - diff --git a/project_old/provider.tf b/project_old/provider.tf deleted file mode 100644 index a89dd02..0000000 --- a/project_old/provider.tf +++ /dev/null @@ -1,10 +0,0 @@ - -terraform { - required_providers { - stackit = { - source = "stackitcloud/stackit" - version = ">= 0.54.0" # Diese Version passt zu Ihrer Anforderung - } - } -} - diff --git a/project_old/sna.tf b/project_old/sna.tf deleted file mode 100644 index 711c80d..0000000 --- a/project_old/sna.tf +++ /dev/null @@ -1,27 +0,0 @@ -/* resource "time_sleep" "wait_before_destroy" { - destroy_duration = "60s" -} -*/ - -resource "stackit_network_area" "sna" { - organization_id = var.organization_id - name = "bego_sna" - network_ranges = [ - { - prefix = "10.220.0.0/16" - } - ] - transfer_network = "var.sna_net" - //depends_on = [time_sleep.wait_before_destroy] -} - -/* resource "stackit_network_area_route" "sna_route1" { - organization_id = var.organization_id - network_area_id = stackit_network_area.sna.network_area_id - prefix = "10.220.99.0/24" - next_hop = "10.220.0.0" - labels = { - "key" = "value" - } -} -*/ diff --git a/project_old/variables.tf b/project_old/variables.tf deleted file mode 100644 index 6a8400f..0000000 --- a/project_old/variables.tf +++ /dev/null @@ -1,10 +0,0 @@ -variable "organization_id" { - description = "Empfängt die Container-ID der Organisation vom Root-Modul." - type = string -} - -variable "sna_net" { - description = "SNA Transfer Network" - type = string -} -