File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ module "resource_group" {
1313# #############################################################################
1414# Key Protect Instance
1515# #############################################################################
16- resource "ibm_resource_instance" "key_protect_instance" {
17- name = " ${ var . prefix } -key-protect-instance"
16+ module "key_protect_module" {
17+ source = " terraform-ibm-modules/key-protect/ibm"
18+ version = " v2.3.0"
19+ key_protect_name = " ${ var . prefix } -key-protect-instance"
1820 resource_group_id = module. resource_group . resource_group_id
19- service = " kms"
20- plan = " tiered-pricing"
21- location = var. region
21+ region = var. region
2222 service_endpoints = " private"
23+ plan = " tiered-pricing"
2324}
2425
2526# ##############################################################################
@@ -75,7 +76,7 @@ module "cbr_account_level" {
7576 target_service_details = {
7677 " kms" = {
7778 " enforcement_mode" = " enabled"
78- " instance_id" = ibm_resource_instance.key_protect_instance.guid
79+ " instance_id" = module.key_protect_module.key_protect_guid
7980 }
8081 }
8182
@@ -93,7 +94,10 @@ module "cbr_account_level" {
9394 {
9495 endpointType = " public"
9596 service_ref_names = [" schematics" ]
96- }
97+ },
98+ {
99+ endpointType = " public"
100+ zone_ids = [module.cbr_zone_operator_ips.zone_id] }
97101 ],
98102 " schematics" = [{
99103 endpointType = " public"
You can’t perform that action at this time.
0 commit comments