Skip to content

Commit

Permalink
SSPROD-36960: Update the customer role name based on subscription (#28)
Browse files Browse the repository at this point in the history
* Update

* SSPROD-36960: Use only the subscription id
  • Loading branch information
mdkulkarni15 authored Feb 2, 2024
1 parent 383d139 commit d58be63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/services/service-principal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ resource "azurerm_role_assignment" "sysdig_reader" {
# Create a Custom role for collecting authsettings
#---------------------------------------------------------------------------------------------
resource "azurerm_role_definition" "sysdig_cspm_role" {
name = "sysdig-cspm-role"
name = "sysdig-cspm-role-${var.subscription_id}"
scope = data.azurerm_subscription.primary.id
description = "Custom role for collecting Authsettings for CIS Benchmark"

permissions {
actions = [
actions = [
"Microsoft.Web/sites/config/list/action"
]
not_actions = []
Expand Down

0 comments on commit d58be63

Please sign in to comment.