Skip to content

Commit 52fbdd3

Browse files
authored
feat: The following variables have been renamed in the DA solution:<br>- existing_sm_kms_key_crn -> existing_secrets_manager_kms_key_crn<br>- existing_en_instance_crn -> existing_event_notification_instance_crn<br>- skip_en_iam_authorization_policy -> skip_event_notification_iam_authorization_policy (#105)
1 parent 23c2542 commit 52fbdd3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

solutions/standard/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module "resource_group" {
1313
# KMS Key
1414
#######################################################################################################################
1515
locals {
16-
kms_key_crn = var.existing_sm_kms_key_crn != null ? var.existing_sm_kms_key_crn : module.kms[0].keys[format("%s.%s", local.kms_key_ring_name, local.kms_key_name)].crn
16+
kms_key_crn = var.existing_secrets_manager_kms_key_crn != null ? var.existing_secrets_manager_kms_key_crn : module.kms[0].keys[format("%s.%s", local.kms_key_ring_name, local.kms_key_name)].crn
1717
kms_key_ring_name = var.prefix != null ? "${var.prefix}-${var.kms_key_ring_name}" : var.kms_key_ring_name
1818
kms_key_name = var.prefix != null ? "${var.prefix}-${var.kms_key_name}" : var.kms_key_name
1919
}
@@ -22,7 +22,7 @@ module "kms" {
2222
providers = {
2323
ibm = ibm.kms
2424
}
25-
count = var.existing_sm_kms_key_crn != null ? 0 : 1 # no need to create any KMS resources if passing an existing key, or bucket
25+
count = var.existing_secrets_manager_kms_key_crn != null ? 0 : 1 # no need to create any KMS resources if passing an existing key, or bucket
2626
source = "terraform-ibm-modules/kms-all-inclusive/ibm"
2727
version = "4.8.5"
2828
create_key_protect_instance = false
@@ -66,9 +66,9 @@ module "secrets_manager" {
6666
kms_key_crn = local.kms_key_crn
6767
skip_kms_iam_authorization_policy = var.skip_kms_iam_authorization_policy
6868
# event notifications dependency
69-
enable_event_notification = var.existing_en_instance_crn != null ? true : false
70-
existing_en_instance_crn = var.existing_en_instance_crn
71-
skip_en_iam_authorization_policy = var.skip_en_iam_authorization_policy
69+
enable_event_notification = var.existing_event_notification_instance_crn != null ? true : false
70+
existing_en_instance_crn = var.existing_event_notification_instance_crn
71+
skip_en_iam_authorization_policy = var.skip_event_notification_iam_authorization_policy
7272
endpoint_type = var.allowed_network == "private-only" ? "private" : "public"
7373
}
7474

solutions/standard/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ variable "skip_kms_iam_authorization_policy" {
8989
default = false
9090
}
9191

92-
variable "existing_sm_kms_key_crn" {
92+
variable "existing_secrets_manager_kms_key_crn" {
9393
type = string
9494
description = "The CRN of an existing KMS key to use for Secrets Manager. If not supplied, a new key ring and key will be created."
9595
default = null
@@ -137,13 +137,13 @@ variable "kms_key_name" {
137137
# Event Notifications
138138
########################################################################################################################
139139

140-
variable "existing_en_instance_crn" {
140+
variable "existing_event_notification_instance_crn" {
141141
type = string
142142
description = "The CRN of the Event Notifications service to enable lifecycle notifications for your Secrets Manager instance."
143143
default = null
144144
}
145145

146-
variable "skip_en_iam_authorization_policy" {
146+
variable "skip_event_notification_iam_authorization_policy" {
147147
type = bool
148148
description = "Set to true to skip the creation of an IAM authorization policy that permits all Secrets Manager instances (scoped to the resource group) an 'Event Source Manager' role to the given Event Notifications instance passed in the `existing_en_instance_crn` input variable."
149149
default = false

0 commit comments

Comments
 (0)