Skip to content

Commit b28258f

Browse files
authored
fix: update the description of the auth policy created by this module (#269)
1 parent 6288650 commit b28258f

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 ICD Postgres 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.postgresql_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": 189
526+
"line": 190
525527
}
526528
},
527529
"ibm_resource_tag.postgresql_tag": {
@@ -537,7 +539,7 @@
537539
},
538540
"pos": {
539541
"filename": "main.tf",
540-
"line": 140
542+
"line": 141
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": 217
574+
"line": 218
573575
}
574576
}
575577
},
@@ -648,7 +650,7 @@
648650
},
649651
"pos": {
650652
"filename": "main.tf",
651-
"line": 150
653+
"line": 151
652654
}
653655
}
654656
}

0 commit comments

Comments
 (0)