Skip to content

Commit eefa0a2

Browse files
authored
chore: fixed tflint errors (#105)
1 parent 5033ef2 commit eefa0a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.83.4
3+
rev: v1.83.5
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -14,7 +14,7 @@ repos:
1414
args:
1515
- '--args=--lockfile=false'
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v4.4.0
17+
rev: v4.5.0
1818
hooks:
1919
- id: check-merge-conflict
2020
- id: trailing-whitespace

cloudwatch_event_rules.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "aws_lambda_permission" "cloudwatch_events" {
44
action = "lambda:InvokeFunction"
55
function_name = var.function_name
66
principal = "events.amazonaws.com"
7-
qualifier = contains(keys(each.value), "cloudwatch_event_target_arn") ? trimprefix(lookup(each.value, "cloudwatch_event_target_arn"), "${local.function_arn}:") : null
7+
qualifier = contains(keys(each.value), "cloudwatch_event_target_arn") ? trimprefix(each.value["cloudwatch_event_target_arn"], "${local.function_arn}:") : null
88
source_arn = aws_cloudwatch_event_rule.lambda[each.key].arn
99
}
1010

sns_subscriptions.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ resource "aws_lambda_permission" "sns" {
44
action = "lambda:InvokeFunction"
55
function_name = var.function_name
66
principal = "sns.amazonaws.com"
7-
qualifier = contains(keys(each.value), "endpoint") ? trimprefix(lookup(each.value, "endpoint"), "${local.function_arn}:") : null
8-
source_arn = lookup(each.value, "topic_arn")
7+
qualifier = contains(keys(each.value), "endpoint") ? trimprefix(each.value["endpoint"], "${local.function_arn}:") : null
8+
source_arn = each.value["topic_arn"]
99
}
1010

1111
resource "aws_sns_topic_subscription" "subscription" {
1212
for_each = var.sns_subscriptions
1313

1414
endpoint = lookup(each.value, "endpoint", local.function_arn)
1515
protocol = "lambda"
16-
topic_arn = lookup(each.value, "topic_arn")
16+
topic_arn = each.value["topic_arn"]
1717
}

0 commit comments

Comments
 (0)