Skip to content

Commit

Permalink
added data subscription to module
Browse files Browse the repository at this point in the history
  • Loading branch information
shanice-skylight committed Aug 7, 2024
1 parent a8b8755 commit 0fa10b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ops/pentest/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ module "app_service_autoscale" {
}

module "logic_app_workflow" {
source = "../services/alerts/alert_app"
global_vault = data.azurerm_key_vault.global
source = "../services/alerts/alert_app"
name = local.name
env_level = local.env_level
global_vault = data.azurerm_key_vault.global
resource_group_name = data.azurerm_resource_group.rg.name
}
1 change: 1 addition & 0 deletions ops/services/alerts/alert_app/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ data "azurerm_key_vault_secret" "azure_alert_slack_webhook" {


data "azurerm_subscription" "primary" {

}

# Resource Groups
Expand Down
2 changes: 1 addition & 1 deletion ops/services/alerts/alert_app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ locals {
resource "azurerm_logic_app_workflow" "slack_workflow" {
name = "alert-logic-app"
location = data.azurerm_resource_group.rg.location
resource_group_name = data.azurerm_resource_group.rg
resource_group_name = data.azurerm_resource_group.rg.name


}
Expand Down

0 comments on commit 0fa10b0

Please sign in to comment.