Skip to content

Commit

Permalink
bucket name var
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettje committed Sep 11, 2023
1 parent 79e3fbd commit 2367798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ssm_log_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ locals {
create_log_bucket = local.enabled && var.bucket_id == null
bucket_id = var.bucket_id != null ? var.bucket_id : module.ssm_patch_log_s3_bucket_label.id
bucket_policy = var.ssm_bucket_policy != null ? var.ssm_bucket_policy : try(data.aws_iam_policy_document.bucket_policy[0].json, "")
bucket_name = var.ssm_bucket_name != null ? var.ssm_bucket_name : module.this.context.name
}


Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ variable "ssm_bucket_policy" {
default = null
}

variable "ssm_bucket_name" {
type = string
description = "Bucket Name used for the patch log. If no bucket name is provided the module will use the context name."
default = null
}

variable "bucket_id" {
type = string
description = "The bucket ID to use for the patch log. If no bucket ID is provided, the module will create a new one."
Expand Down

0 comments on commit 2367798

Please sign in to comment.