Skip to content

Commit 917a954

Browse files
committed
style: fixes
1 parent cb53d03 commit 917a954

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ data "aws_cloudwatch_log_group" "cloudtrail" {
2222
}
2323

2424
resource "aws_cloudwatch_log_metric_filter" "main" {
25-
for_each = {for rule in local.alerts : rule.name => rule}
25+
for_each = { for rule in local.alerts : rule.name => rule }
2626

2727
name = each.value.name
2828
pattern = each.value.pattern
@@ -36,7 +36,7 @@ resource "aws_cloudwatch_log_metric_filter" "main" {
3636
}
3737

3838
resource "aws_cloudwatch_metric_alarm" "main" {
39-
for_each = {for rule in local.alerts : rule.name => rule}
39+
for_each = { for rule in local.alerts : rule.name => rule }
4040

4141
alarm_name = "${each.value.name}Alarm"
4242
metric_name = "${each.value.name}Count"
@@ -84,7 +84,7 @@ data "aws_iam_policy_document" "kms" {
8484
actions = ["kms:*"]
8585

8686
principals {
87-
type = "AWS"
87+
type = "AWS"
8888
identifiers = [
8989
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:root",
9090
]
@@ -94,7 +94,7 @@ data "aws_iam_policy_document" "kms" {
9494
statement {
9595
sid = "CloudwatchUsage"
9696
resources = ["*"]
97-
actions = [
97+
actions = [
9898
"kms:Decrypt",
9999
"kms:GenerateDataKey*"
100100
]
@@ -134,9 +134,9 @@ module "chatbot_role" {
134134

135135
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
136136

137-
name = "${var.prefix}-chatbot-cloudtrail-alerts"
138-
description = "Role for AWS Chatbot to read CloudWatch alerts."
139-
policy_arns = ["arn:aws:iam::aws:policy/CloudWatchReadOnlyAccess"]
137+
name = "${var.prefix}-chatbot-cloudtrail-alerts"
138+
description = "Role for AWS Chatbot to read CloudWatch alerts."
139+
policy_arns = ["arn:aws:iam::aws:policy/CloudWatchReadOnlyAccess"]
140140
assume_roles = {
141141
"Service" : {
142142
identifiers = ["chatbot.amazonaws.com"]

0 commit comments

Comments
 (0)