Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
count = local.create_kms_auth_policy
source_service_name = "messages-for-rabbitmq"
source_resource_group_id = var.resource_group_id
roles = ["Reader"]
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
description = "Allow all RabbitMQ instances in the resource group ${var.resource_group_id} to read the ${local.kms_service} key ${local.kms_key_id} from the instance GUID ${local.kms_key_instance_guid}"
resource_attributes {
name = "serviceName"
Expand Down Expand Up @@ -110,7 +110,7 @@ resource "ibm_iam_authorization_policy" "backup_kms_policy" {
count = local.create_backup_kms_auth_policy
source_service_name = "messages-for-rabbitmq"
source_resource_group_id = var.resource_group_id
roles = ["Reader"]
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
description = "Allow all RabbitMQ instances in the Resource Group ${var.resource_group_id} to read the ${local.backup_kms_service} key ${local.backup_kms_key_id} from the instance GUID ${local.backup_kms_key_instance_guid}"
resource_attributes {
name = "serviceName"
Expand Down
4 changes: 2 additions & 2 deletions solutions/fully-configurable/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
source_service_account = local.account_id
source_service_name = "messages-for-rabbitmq"
source_resource_group_id = module.resource_group.resource_group_id
roles = ["Reader"]
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
description = "Allow all RabbitMQ instances in the resource group ${module.resource_group.resource_group_id} in the account ${local.account_id} to read the ${local.kms_service} key ${local.kms_key_id} from the instance GUID ${local.kms_instance_guid}"
resource_attributes {
name = "serviceName"
Expand Down Expand Up @@ -168,7 +168,7 @@ resource "ibm_iam_authorization_policy" "backup_kms_policy" {
source_service_account = local.account_id
source_service_name = "messages-for-rabbitmq"
source_resource_group_id = module.resource_group.resource_group_id
roles = ["Reader"]
roles = ["Reader", "Authorization Delegator"] # Authorization Delegator role required for backup encryption key
description = "Allow all RabbitMQ instances in the resource group ${module.resource_group.resource_group_id} in the account ${local.account_id} to read the ${local.backup_kms_service} key ${local.backup_kms_key_id} from the instance GUID ${local.backup_kms_instance_guid}"
resource_attributes {
name = "serviceName"
Expand Down