Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Diniz <[email protected]>
  • Loading branch information
arthurbdiniz committed Jun 17, 2021
1 parent cc2a101 commit 070bff6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "slack_endpoint" {
}

variable "email" {
default = ""
default = ""
description = "Email address to subscribe notification to (optional)"
}

Expand Down
10 changes: 5 additions & 5 deletions kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
6 changes: 3 additions & 3 deletions sns-topic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 070bff6

Please sign in to comment.