From 6e2457e34e988040826d951f22f23cd035ee009c Mon Sep 17 00:00:00 2001 From: "Kwiatosz, Krzysztof" Date: Tue, 17 Dec 2024 11:08:51 +0100 Subject: [PATCH] Make sure SM operator-access plan exists --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 597a44c..5273e76 100644 --- a/main.tf +++ b/main.tf @@ -12,7 +12,16 @@ resource "btp_subaccount_entitlement" "kyma" { amount = 1 } +resource "btp_subaccount_entitlement" "sm-operator-access" { + subaccount_id = local.subaccount_id + service_name = "service-manager" + plan_name = "service-operator-access" +} + resource "btp_subaccount_environment_instance" "kyma" { + depends_on = [ + resource.btp_subaccount_entitlement.sm-operator-access + ] subaccount_id = local.subaccount_id name = "${local.subaccount_name}-kyma" environment_type = "kyma"