Skip to content

Commit 7abeb4c

Browse files
authored
fix: added a description to the auth policy created by this module (#31)
1 parent 033a168 commit 7abeb4c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
3030
target_service_name = local.kms_service
3131
target_resource_instance_id = var.existing_kms_instance_guid
3232
roles = ["Reader"]
33+
description = "Allow all RabbitMQ instances in the resource group ${var.resource_group_id} to read from the ${local.kms_service} instance GUID ${var.existing_kms_instance_guid}"
3334
}
3435

3536
# workaround for https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4478

module-metadata.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@
244244
"required": true,
245245
"source": [
246246
"ibm_database.rabbitmq_database.resource_group_id",
247+
"ibm_iam_authorization_policy.kms_policy.description",
247248
"ibm_iam_authorization_policy.kms_policy.source_resource_group_id"
248249
],
249250
"pos": {
@@ -434,7 +435,7 @@
434435
},
435436
"pos": {
436437
"filename": "main.tf",
437-
"line": 43
438+
"line": 44
438439
}
439440
},
440441
"ibm_iam_authorization_policy.kms_policy": {
@@ -443,6 +444,7 @@
443444
"name": "kms_policy",
444445
"attributes": {
445446
"count": "kms_encryption_enabled",
447+
"description": "resource_group_id",
446448
"source_resource_group_id": "resource_group_id",
447449
"target_resource_instance_id": "existing_kms_instance_guid"
448450
},
@@ -466,7 +468,7 @@
466468
},
467469
"pos": {
468470
"filename": "main.tf",
469-
"line": 178
471+
"line": 179
470472
}
471473
},
472474
"ibm_resource_tag.rabbitmq_tag": {
@@ -482,7 +484,7 @@
482484
},
483485
"pos": {
484486
"filename": "main.tf",
485-
"line": 130
487+
"line": 131
486488
}
487489
},
488490
"time_sleep.wait_for_authorization_policy": {
@@ -494,7 +496,7 @@
494496
},
495497
"pos": {
496498
"filename": "main.tf",
497-
"line": 36
499+
"line": 37
498500
}
499501
}
500502
},
@@ -514,7 +516,7 @@
514516
},
515517
"pos": {
516518
"filename": "main.tf",
517-
"line": 206
519+
"line": 207
518520
}
519521
}
520522
},
@@ -592,7 +594,7 @@
592594
},
593595
"pos": {
594596
"filename": "main.tf",
595-
"line": 140
597+
"line": 141
596598
}
597599
}
598600
}

0 commit comments

Comments
 (0)