Skip to content

Commit

Permalink
Local test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed Oct 7, 2024
1 parent d1777be commit da0da71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/btp/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ module "kyma" {
}

data "btp_subaccount_service_binding" "provider_sm" {
count = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? 0 : 1
count = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? 1 : 0
subaccount_id = var.BTP_PROVIDER_SUBACCOUNT_ID
name = "provider-sm-binding"
}

locals {
providerServiceManagerCredentials = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? null : jsondecode(one(data.btp_subaccount_service_binding.provider_sm).credentials)
providerServiceManagerCredentials = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? jsondecode(one(data.btp_subaccount_service_binding.provider_sm).credentials) : null
}


resource "local_file" "provider_sm" {
count = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? 0 : 1
count = var.BTP_PROVIDER_SUBACCOUNT_ID == null ? 1 : 0
content = <<EOT
clientid=${local.providerServiceManagerCredentials.clientid}
clientsecret=${local.providerServiceManagerCredentials.clientsecret}
Expand Down

0 comments on commit da0da71

Please sign in to comment.