From afc5df7cc8f59c1d83004889043790033e8a4e7d Mon Sep 17 00:00:00 2001 From: Henry Dettmer Date: Wed, 1 Apr 2026 14:53:02 +0200 Subject: [PATCH] chore: use built in stackit platform type --- modules/stackit/README.md | 3 +-- modules/stackit/meshstack_integration.tf | 19 +++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/modules/stackit/README.md b/modules/stackit/README.md index d7d907e0..d24c0ab7 100644 --- a/modules/stackit/README.md +++ b/modules/stackit/README.md @@ -1,10 +1,9 @@ --- name: STACKIT -description: meshStack integration with STACKIT automates project provisioning, governance, and cost tracking for your cloud workloads. +description: meshStack integration with STACKIT automates project provisioning, and governance for your cloud workloads. category: european benefits: - Project Provisioning - Role Assignment - - Cost Tracking --- diff --git a/modules/stackit/meshstack_integration.tf b/modules/stackit/meshstack_integration.tf index 50088573..c97e22ae 100644 --- a/modules/stackit/meshstack_integration.tf +++ b/modules/stackit/meshstack_integration.tf @@ -66,19 +66,6 @@ output "building_block_definition" { } } -resource "meshstack_platform_type" "stackit" { - metadata = { - name = "STACKIT" - owned_by_workspace = var.meshstack.owning_workspace_identifier - } - - spec = { - display_name = "STACKIT" - default_endpoint = "https://portal.stackit.cloud" - icon = "data:image/png;base64,${filebase64("${path.module}/stackit.png")}" - } -} - resource "meshstack_platform" "stackit" { metadata = { name = var.meshstack.platform_identifier @@ -87,7 +74,7 @@ resource "meshstack_platform" "stackit" { spec = { display_name = "STACKIT Project" - description = "STACKIT. Create a STACKIT project with role-based access control." + description = "Create a STACKIT project with role-based access control." endpoint = "https://portal.stackit.cloud" location_ref = { @@ -102,7 +89,7 @@ resource "meshstack_platform" "stackit" { config = { custom = { - platform_type_ref = meshstack_platform_type.stackit.ref + platform_type_ref = { name = "STACKIT" } } } } @@ -148,7 +135,7 @@ resource "meshstack_building_block_definition" "this" { support_url = "https://portal.stackit.cloud" target_type = "TENANT_LEVEL" run_transparency = true - supported_platforms = [meshstack_platform_type.stackit.ref] + supported_platforms = [{ name = "STACKIT" }] } version_spec = {