Skip to content

Commit

Permalink
Merge pull request #175 from Cervest/feature_s3_kms_arn
Browse files Browse the repository at this point in the history
Create the option to pass in kms key ARN for config logs bucket
  • Loading branch information
esacteksab authored Dec 8, 2022
2 parents 105cdf6 + a66e234 commit 9cd220f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ No modules.
| config\_aggregator\_name | The name of the aggregator. | `string` | `"organization"` | no |
| config\_delivery\_frequency | The frequency with which AWS Config delivers configuration snapshots. | `string` | `"Six_Hours"` | no |
| config\_logs\_bucket | The S3 bucket for AWS Config logs. If you have set enable\_config\_recorder to false then this can be an empty string. | `string` | n/a | yes |
| config\_logs\_bucket\_kms\_key\_arn | The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket. | `string` | `null` | no |
| config\_logs\_prefix | The S3 prefix for AWS Config logs. | `string` | `"config"` | no |
| config\_max\_execution\_frequency | The maximum frequency with which AWS Config runs evaluations for a rule. | `string` | `"TwentyFour_Hours"` | no |
| config\_name | The name of the AWS Config instance. | `string` | `"aws-config"` | no |
Expand Down
1 change: 1 addition & 0 deletions config-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resource "aws_config_delivery_channel" "main" {
name = var.config_name
s3_bucket_name = var.config_logs_bucket
s3_key_prefix = var.config_logs_prefix
s3_kms_key_arn = var.config_logs_bucket_kms_key_arn
sns_topic_arn = var.config_sns_topic_arn

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

variable "config_logs_bucket_kms_key_arn" {
description = "The ARN of the AWS KMS key used to encrypt objects delivered by AWS Config. Must belong to the same Region as the destination S3 bucket."
type = string
default = null
}

variable "config_max_execution_frequency" {
description = "The maximum frequency with which AWS Config runs evaluations for a rule."
type = string
Expand Down

0 comments on commit 9cd220f

Please sign in to comment.