diff --git a/_variables.tf b/_variables.tf index 3bef68f..b04fb49 100644 --- a/_variables.tf +++ b/_variables.tf @@ -8,7 +8,7 @@ variable "slack_endpoint" { } variable "email" { - default = "" + default = "" description = "Email address to subscribe notification to (optional)" } diff --git a/kms.tf b/kms.tf index 105515e..60e81ec 100644 --- a/kms.tf +++ b/kms.tf @@ -7,17 +7,17 @@ data "aws_iam_policy_document" "kms_policy_sns" { type = "AWS" identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"] } - actions = ["kms:*"] + actions = ["kms:*"] resources = ["*"] } statement { - actions = [ "kms:Decrypt","kms:GenerateDataKey*"] + actions = ["kms:Decrypt", "kms:GenerateDataKey*"] principals { - type = "Service" - identifiers = ["cloudwatch.amazonaws.com","lambda.amazonaws.com"] + type = "Service" + identifiers = ["cloudwatch.amazonaws.com", "lambda.amazonaws.com"] } resources = ["*"] - sid = "allow-services-kms" + sid = "allow-services-kms" } } diff --git a/sns-topic.tf b/sns-topic.tf index b6bd460..5ee33ed 100644 --- a/sns-topic.tf +++ b/sns-topic.tf @@ -30,17 +30,17 @@ data "aws_iam_policy_document" "sns" { identifiers = ["*"] } resources = [aws_sns_topic.default[0].arn] - sid = "allow-publish-clients-stmt" + sid = "allow-publish-clients-stmt" } statement { actions = ["SNS:Publish"] - effect = "Allow" + effect = "Allow" principals { type = "Service" identifiers = ["events.amazonaws.com"] } resources = [aws_sns_topic.default[0].arn] - sid = "allow-publish-event-bridge" + sid = "allow-publish-event-bridge" } }