OPMAAS-4486 corrected spelling errors, added examples for groups with permissions

OPMAAS-4486
Doris Ruppert 2023-07-14 11:05:06 +02:00
parent b8f36af95d
commit dadd5e2b5b
12 changed files with 175 additions and 12 deletions

View File

@ -0,0 +1,32 @@
{
"levelType": "environment",
"levelId": "ab88c03b-b7fc-45f0-9115-9e9ecc0ced35",
"policyBindings": [
{
"policyUuid": "32ab8b21-6e97-4d85-95eb-635bb771a4fd",
"groups": [
"dtappcococonnectedcallservicescnview",
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "af9add43-1ef1-4653-984e-fdde3b9964ba",
"groups": [
"dtappcococonnectedcallservicescnview",
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "cd28ffde-77fb-44d7-85fc-94a876660d59",
"groups": [
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "665e7a5c-4ed1-44de-9f8d-d0ce10fe0de0",
"groups": [
"dtappcococonnectedcallservicescnchangelocals"
]
}
]
}

View File

@ -0,0 +1,32 @@
{
"levelType": "environment",
"levelId": "b921f1b9-c00e-4031-b9d1-f5a0d530757b",
"policyBindings": [
{
"policyUuid": "32ab8b21-6e97-4d85-95eb-635bb771a4fd",
"groups": [
"dtappcococonnectedcallservicescnview",
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "af9add43-1ef1-4653-984e-fdde3b9964ba",
"groups": [
"dtappcococonnectedcallservicescnview",
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "cd28ffde-77fb-44d7-85fc-94a876660d59",
"groups": [
"dtappcococonnectedcallservicescnchangelocals"
]
},
{
"policyUuid": "665e7a5c-4ed1-44de-9f8d-d0ce10fe0de0",
"groups": [
"dtappcococonnectedcallservicescnchangelocals"
]
}
]
}

View File

@ -1,9 +0,0 @@
resource "dynatrace_user_group" "DT_APP_CoCo_CallServices_CN_View" {
name = "DT_APP_CoCo_CallServices_CN_View"
ldap_groups = [ "Connected Call Services - China View" ]
permissions {
grant {
}
}
}

View File

@ -0,0 +1,12 @@
{
"isClusterAdminGroup": false,
"isManageAccount": false,
"isAccessAccount": false,
"id": "dtappcococonnectedcallservicescnchangelocals",
"name": "DT_APP_CoCo_ConnectedCallServices_CN_Change_locals",
"ldapGroupNames": [
"Connected Call Services - CN Change locals"
],
"ssoGroupNames": [],
"accessRight": {}
}

View File

@ -0,0 +1,29 @@
{
"groupId": "dtappcococonnectedcallservicescnchangelocals",
"mzPermissionsPerEnvironment": [
{
"environmentUuid": "b921f1b9-c00e-4031-b9d1-f5a0d530757b",
"mzPermissions": [
{
"mzId": "-5295932427366417022",
"permissions": [
"VIEWER",
"MANAGE_SETTINGS"
]
}
]
},
{
"environmentUuid": "ab88c03b-b7fc-45f0-9115-9e9ecc0ced35",
"mzPermissions": [
{
"mzId": "3609016845412481885",
"permissions": [
"VIEWER",
"MANAGE_SETTINGS"
]
}
]
}
]
}

View File

@ -0,0 +1,13 @@
{
"isClusterAdminGroup": false,
"isAccessAccount": false,
"isManageAccount": false,
"id": "dtappcococonnectedcallservicescnview",
"name": "DT_APP_CoCo_ConnectedCallServices_CN_View",
"ldapGroupNames": [
"Connected Call Services - China View"
],
"ssoGroupNames": [],
"accessRight": {
}
}

View File

@ -0,0 +1,10 @@
resource "dynatrace_user_group" "DT_APP_CoCo_ConnectedCallServices_CN_View" {
name = "DT_APP_CoCo_ConnectedCallServices_CN_View"
ldap_groups = [ "Connected Call Services - China View" ]
permissions {
grant {
permission = "VIEWER"
}
}
}

View File

@ -0,0 +1,27 @@
{
"groupId": "dtappcococonnectedcallservicescnview",
"mzPermissionsPerEnvironment": [
{
"environmentUuid": "b921f1b9-c00e-4031-b9d1-f5a0d530757b",
"mzPermissions": [
{
"mzId": "-5295932427366417022",
"permissions": [
"VIEWER"
]
}
]
},
{
"environmentUuid": "ab88c03b-b7fc-45f0-9115-9e9ecc0ced35",
"mzPermissions": [
{
"mzId": "3609016845412481885",
"permissions": [
"VIEWER"
]
}
]
}
]
}

View File

@ -0,0 +1,17 @@
{
"isClusterAdminGroup": false,
"isAccessAccount": false,
"isManageAccount": false,
"id": "dtenvcococnview",
"name": "DT_ENV_CoCo_CN_View",
"ldapGroupNames": [
"Cross-Product View - China"
],
"ssoGroupNames": [],
"accessRight": {
"VIEWER": [
"ab88c03b-b7fc-45f0-9115-9e9ecc0ced35",
"b921f1b9-c00e-4031-b9d1-f5a0d530757b"
]
}
}

View File

@ -1,5 +1,5 @@
resource "dynatrace_iam_group" "DT_APP_CoCo_CallServices_EMEA-NA_View" {
name = "DT_APP_CoCo_CallServices_EMEANA_View"
resource "dynatrace_iam_group" "DT_APP_CoCo_ConnectedCallServices_EMEA-NA_View" {
name = "DT_APP_CoCo_ConnectedCallServices_EMEA-NA_View"
description = "Connected Call Services - EMEA NA View (preprod und prod)"
federated_attribute_values = [ "Connected Call Services - EMEA NA View" ]

View File

@ -8,7 +8,7 @@ terraform {
backend "s3" {
bucket = "coco-dynatrace-tfstate-prod"
key = "EMEA_NA/user_groups/terraform.tfstate"
key = "EMEA-NA/user_groups/terraform.tfstate"
region = "eu-central-1"
dynamodb_table = "coco-dynatrace-tfstate"
encrypt = true