Skip to content

Commit 7ff0925

Browse files
iamar7Md Anam Raihan
andauthored
fix: renaned the following variables:<br>- enable_archive -> enable_log_archive<br>- archive_api_key -> log_archive_api_key (#27)
Co-authored-by: Md Anam Raihan <[email protected]>
1 parent d2e405d commit 7ff0925

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

solutions/instances/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#######################################################################################################################
44

55
locals {
6-
archive_api_key = var.archive_api_key == null ? var.ibmcloud_api_key : var.archive_api_key
6+
archive_api_key = var.log_archive_api_key == null ? var.ibmcloud_api_key : var.log_archive_api_key
77

88
cos_instance_crn = var.existing_cos_instance_crn != null ? var.existing_cos_instance_crn : module.cos[0].cos_instance_crn
99
archive_cos_bucket_name = var.existing_log_archive_cos_bucket_name != null ? var.existing_log_archive_cos_bucket_name : module.cos[0].buckets[var.log_archive_cos_bucket_name].bucket_name
@@ -69,7 +69,7 @@ module "observability_instance" {
6969
}
7070
region = var.region
7171
resource_group_id = module.resource_group.resource_group_id
72-
enable_archive = var.enable_archive
72+
enable_archive = var.enable_log_archive
7373
ibmcloud_api_key = local.archive_api_key
7474
# Log Analysis
7575
log_analysis_provision = true

solutions/instances/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ variable "log_analysis_tags" {
6262
default = []
6363
}
6464

65-
variable "enable_archive" {
65+
variable "enable_log_archive" {
6666
type = bool
6767
description = "Enable archive on log analysis instance"
6868
default = true
6969
}
7070

71-
variable "archive_api_key" {
71+
variable "log_archive_api_key" {
7272
type = string
7373
description = "(Optional) The API key to use to configure log analysis archiving with COS. If no value passed, the API key value passed in the 'ibmcloud_api_key' variable will be used."
7474
sensitive = true

0 commit comments

Comments
 (0)