Skip to content

Commit

Permalink
Major: Update to reflex-engine v2.0.0 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbanderson committed Aug 13, 2020
1 parent 2d00005 commit e493500
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/cwe/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "cwe" {
source = "git::https://github.com/cloudmitigator/reflex-engine.git//modules/cwe?ref=v1.0.0"
source = "git::https://github.com/cloudmitigator/reflex-engine.git//modules/cwe?ref=v2.0.0"
name = "KmsKeyRotationDisabled"
description = "A Reflex Rule for enforcing KMS Key rotation"

Expand Down
4 changes: 2 additions & 2 deletions terraform/sqs_lambda/sqs_lambda.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module "sqs_lambda" {
source = "git::https://github.com/cloudmitigator/reflex-engine.git//modules/sqs_lambda?ref=v1.0.0"
source = "git::https://github.com/cloudmitigator/reflex-engine.git//modules/sqs_lambda?ref=v2.0.0"

cloudwatch_event_rule_id = var.cloudwatch_event_rule_id
cloudwatch_event_rule_arn = var.cloudwatch_event_rule_arn
function_name = "KmsKeyRotationDisabled"
source_code_dir = "${path.module}/../../source"
package_location = var.package_location
handler = "reflex_aws_kms_key_rotation_disabled.lambda_handler"
lambda_runtime = "python3.7"
environment_variable_map = {
Expand Down
6 changes: 6 additions & 0 deletions terraform/sqs_lambda/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ variable "mode" {
type = string
default = "detect"
}

variable "package_location" {
description = "Path for the Lambda deployment package"
type = string
default = "../package_build/kms-key-rotation-disabled.zip"
}

0 comments on commit e493500

Please sign in to comment.