Skip to content

Commit

Permalink
add count to avoid dev and prod fetch not existing secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianluca Ciuffa authored and Gianluca Ciuffa committed Dec 18, 2024
1 parent a9d556f commit 6b6594f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/domains/ecommerce-app/04_apim_ecommerce.tf
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ module "apim_ecommerce_user_stats_service_api_v1" {
## NAMED VALUE ##
#################
data "azurerm_key_vault_secret" "ecommerce_dev_sendpaymentresult_subscription_key" {
count = var.env_short == "u" ? 1 : 0
name = "ecommerce-dev-sendpaymentresult-subscription-key"
key_vault_id = data.azurerm_key_vault.kv.id
}
Expand Down

0 comments on commit 6b6594f

Please sign in to comment.