Skip to content

Commit

Permalink
Merge pull request #22 from mitre/groups
Browse files Browse the repository at this point in the history
v0.16.1
  • Loading branch information
jkufro authored Sep 27, 2021
2 parents 39d49dd + 1e69ae6 commit e355e54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
17 changes: 1 addition & 16 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,6 @@ resource "null_resource" "push_image" {
}
}

##
# KMS key for encrypting lambda log data
#
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key
#
resource "aws_kms_key" "ServerlessInSpecLogsKmsKey" {
description = "The KMS key used to encrypt ConfigToHdf's logs"
deletion_window_in_days = 10
enable_key_rotation = true

tags = {
Name = "ServerlessInSpecLogsKmsKey"
}
}

##
# InSpec Lambda function
#
Expand All @@ -92,7 +77,7 @@ module "serverless-inspec-lambda" {
vpc_subnet_ids = var.subnet_ids
vpc_security_group_ids = var.security_groups

cloudwatch_logs_kms_key_id = aws_kms_key.ServerlessInSpecLogsKmsKey.key_id
cloudwatch_logs_kms_key_id = var.cloudwatch_logs_kms_key_id
cloudwatch_logs_retention_in_days = 30

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

variable "cloudwatch_logs_kms_key_id" {
description = "The ARN of the KMS key to use for lambda log encryption."
type = string
default = null
}

variable "lambda_name" {
description = "The name of the lambda function"
type = string
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.16.0
0.16.1

0 comments on commit e355e54

Please sign in to comment.