Skip to content

Commit ec7e12a

Browse files
authored
fix: add a description to the auth policy created by this module(#214)
1 parent e97e6ac commit ec7e12a

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
@@ -34,6 +34,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
3434
target_service_name = local.kms_service
3535
target_resource_instance_id = var.existing_kms_instance_guid
3636
roles = ["Reader"]
37+
description = "Allow all MongoDB instances in the resource group ${var.resource_group_id} to read from the ${local.kms_service} instance GUID ${var.existing_kms_instance_guid}"
3738
}
3839

3940
# 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
@@ -256,6 +256,7 @@
256256
"required": true,
257257
"source": [
258258
"ibm_database.mongodb.resource_group_id",
259+
"ibm_iam_authorization_policy.kms_policy.description",
259260
"ibm_iam_authorization_policy.kms_policy.source_resource_group_id"
260261
],
261262
"pos": {
@@ -447,7 +448,7 @@
447448
},
448449
"pos": {
449450
"filename": "main.tf",
450-
"line": 46
451+
"line": 47
451452
}
452453
},
453454
"ibm_iam_authorization_policy.kms_policy": {
@@ -456,6 +457,7 @@
456457
"name": "kms_policy",
457458
"attributes": {
458459
"count": "kms_encryption_enabled",
460+
"description": "resource_group_id",
459461
"source_resource_group_id": "resource_group_id",
460462
"target_resource_instance_id": "existing_kms_instance_guid"
461463
},
@@ -479,7 +481,7 @@
479481
},
480482
"pos": {
481483
"filename": "main.tf",
482-
"line": 181
484+
"line": 182
483485
}
484486
},
485487
"ibm_resource_tag.mongodb_tag": {
@@ -495,7 +497,7 @@
495497
},
496498
"pos": {
497499
"filename": "main.tf",
498-
"line": 130
500+
"line": 131
499501
}
500502
},
501503
"time_sleep.wait_for_authorization_policy": {
@@ -507,7 +509,7 @@
507509
},
508510
"pos": {
509511
"filename": "main.tf",
510-
"line": 40
512+
"line": 41
511513
}
512514
}
513515
},
@@ -527,7 +529,7 @@
527529
},
528530
"pos": {
529531
"filename": "main.tf",
530-
"line": 209
532+
"line": 210
531533
}
532534
}
533535
},
@@ -606,7 +608,7 @@
606608
},
607609
"pos": {
608610
"filename": "main.tf",
609-
"line": 141
611+
"line": 142
610612
}
611613
}
612614
}

0 commit comments

Comments
 (0)