Skip to content

Commit e91c1b6

Browse files
terraform-ibm-modules-opsSteve Peggs
andauthored
chore(deps): update terraform terraform-ibm-modules/key-protect-all-inclusive/ibm to v4.6.0 (#299)
* chore(deps): update terraform terraform-ibm-modules/key-protect-all-inclusive/ibm to v4.6.0 * fix: inputs and outputs on kms * SKIP UPGRADE TEST --------- Co-authored-by: Steve Peggs <[email protected]>
1 parent 04b660a commit e91c1b6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

examples/complete/main.tf

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,23 @@ resource "ibm_is_subnet" "testacc_subnet" {
3333

3434
module "key_protect_all_inclusive" {
3535
source = "terraform-ibm-modules/key-protect-all-inclusive/ibm"
36-
version = "4.4.2"
36+
version = "4.6.0"
3737
resource_group_id = module.resource_group.resource_group_id
3838
# Note: Database instance and Key Protect must be created in the same region when using BYOK
3939
# See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok
4040
region = var.region
4141
key_protect_instance_name = "${var.prefix}-kp"
4242
resource_tags = var.resource_tags
43-
key_map = { "icd" = ["${var.prefix}-mongodb"] }
43+
keys = [
44+
{
45+
key_ring_name = "icd"
46+
keys = [
47+
{
48+
key_name = "${var.prefix}-mongodb"
49+
}
50+
]
51+
}
52+
]
4453
}
4554

4655
##############################################################################
@@ -77,7 +86,7 @@ module "mongodb" {
7786
kms_encryption_enabled = true
7887
admin_pass = var.admin_pass
7988
users = var.users
80-
existing_kms_instance_guid = module.key_protect_all_inclusive.key_protect_guid
89+
existing_kms_instance_guid = module.key_protect_all_inclusive.kms_guid
8190
region = var.region
8291
kms_key_crn = module.key_protect_all_inclusive.keys["icd.${var.prefix}-mongodb"].crn
8392
access_tags = var.access_tags

0 commit comments

Comments
 (0)