Skip to content

Commit d58be63

Browse files
authored
SSPROD-36960: Update the customer role name based on subscription (#28)
* Update * SSPROD-36960: Use only the subscription id
1 parent 383d139 commit d58be63

File tree

1 file changed

+2
-2
lines changed
  • modules/services/service-principal

1 file changed

+2
-2
lines changed

modules/services/service-principal/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ resource "azurerm_role_assignment" "sysdig_reader" {
4545
# Create a Custom role for collecting authsettings
4646
#---------------------------------------------------------------------------------------------
4747
resource "azurerm_role_definition" "sysdig_cspm_role" {
48-
name = "sysdig-cspm-role"
48+
name = "sysdig-cspm-role-${var.subscription_id}"
4949
scope = data.azurerm_subscription.primary.id
5050
description = "Custom role for collecting Authsettings for CIS Benchmark"
5151

5252
permissions {
53-
actions = [
53+
actions = [
5454
"Microsoft.Web/sites/config/list/action"
5555
]
5656
not_actions = []

0 commit comments

Comments
 (0)