Skip to content

Commit

Permalink
fix config for globally
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Nov 10, 2021
1 parent 3096493 commit e49da55
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module "config" {
managedby = var.managedby
enabled = var.enabled && var.config_enabled
only_config_enabled = var.only_config_enabled
s3_key_prefix = var.s3_key_prefix
config_role_arn = var.config_role_arn
config_s3_bucket_name = var.config_s3_bucket_name
target_config_bucket = var.target_config_bucket
Expand Down
1 change: 1 addition & 0 deletions modules/config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ resource "aws_config_delivery_channel" "bucket" {

name = format("%s-delivery-channel", module.labels.id)
s3_bucket_name = var.config_s3_bucket_name
s3_key_prefix = var.s3_key_prefix
sns_topic_arn = module.sns.topic-arn

snapshot_delivery_properties {
Expand Down
6 changes: 6 additions & 0 deletions modules/config/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1627,3 +1627,9 @@ variable "config_role_arn" {
default = ""
description = "config role arn"
}

variable "s3_key_prefix" {
type = string
default = "AWSLogs/442186832995/Config"
description = "s3 key prefix"
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1828,4 +1828,10 @@ variable "config_role_arn" {
type = string
default = ""
description = "config role arn"
}

variable "s3_key_prefix" {
type = string
default = "AWSLogs/442186832995/Config"
description = "s3 key prefix"
}

0 comments on commit e49da55

Please sign in to comment.