Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit e2e34e7

Browse files
Khuzaima05Khuzaima-Shakeel
andauthored
fix: add a description to the auth policy created by this module (#65)
Co-authored-by: Khuzaima-Shakeel <[email protected]>
1 parent 43a26d4 commit e2e34e7

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
@@ -36,6 +36,7 @@ resource "ibm_iam_authorization_policy" "kms_policy" {
3636
target_service_name = local.kms_service
3737
target_resource_instance_id = var.existing_kms_instance_guid
3838
roles = ["Reader"]
39+
description = "Allow all Enterprise db instances in the resource group ${var.resource_group_id} to read from the ${local.kms_service} instance GUID ${var.existing_kms_instance_guid}"
3940
}
4041

4142
# 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
@@ -272,6 +272,7 @@
272272
"required": true,
273273
"source": [
274274
"ibm_database.enterprise_db.resource_group_id",
275+
"ibm_iam_authorization_policy.kms_policy.description",
275276
"ibm_iam_authorization_policy.kms_policy.source_resource_group_id"
276277
],
277278
"pos": {
@@ -489,7 +490,7 @@
489490
},
490491
"pos": {
491492
"filename": "main.tf",
492-
"line": 49
493+
"line": 50
493494
}
494495
},
495496
"ibm_iam_authorization_policy.kms_policy": {
@@ -498,6 +499,7 @@
498499
"name": "kms_policy",
499500
"attributes": {
500501
"count": "kms_encryption_enabled",
502+
"description": "resource_group_id",
501503
"source_resource_group_id": "resource_group_id",
502504
"target_resource_instance_id": "existing_kms_instance_guid"
503505
},
@@ -521,7 +523,7 @@
521523
},
522524
"pos": {
523525
"filename": "main.tf",
524-
"line": 187
526+
"line": 188
525527
}
526528
},
527529
"ibm_resource_tag.enterprisedb_tag": {
@@ -537,7 +539,7 @@
537539
},
538540
"pos": {
539541
"filename": "main.tf",
540-
"line": 139
542+
"line": 140
541543
}
542544
},
543545
"time_sleep.wait_for_authorization_policy": {
@@ -549,7 +551,7 @@
549551
},
550552
"pos": {
551553
"filename": "main.tf",
552-
"line": 42
554+
"line": 43
553555
}
554556
}
555557
},
@@ -569,7 +571,7 @@
569571
},
570572
"pos": {
571573
"filename": "main.tf",
572-
"line": 215
574+
"line": 216
573575
}
574576
}
575577
},
@@ -647,7 +649,7 @@
647649
},
648650
"pos": {
649651
"filename": "main.tf",
650-
"line": 149
652+
"line": 150
651653
}
652654
}
653655
}

0 commit comments

Comments
 (0)