Skip to content

Commit 6ff8cb3

Browse files
committed
fixing formatting
1 parent ae2a821 commit 6ff8cb3

2 files changed

Lines changed: 21 additions & 17 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77

88
# .tfvars files
99
*.tfvars
10+
11+
# Build harness
12+
.build-harness
13+
build-harness/

main.tf

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ resource "aws_sns_topic" "default" {
1616
}
1717

1818
locals {
19-
aws_sns_topic_arn = coalesce(
20-
element(
21-
concat(
22-
aws_sns_topic.default_prefix.*.arn,
23-
[""],
24-
),
25-
0,
19+
aws_sns_topic_arn = coalesce(
20+
element(
21+
concat(
22+
aws_sns_topic.default_prefix.*.arn,
23+
[""],
2624
),
27-
element(
28-
concat(
29-
aws_sns_topic.default.*.arn,
30-
[""],
31-
),
32-
0,
25+
0,
26+
),
27+
element(
28+
concat(
29+
aws_sns_topic.default.*.arn,
30+
[""],
3331
),
34-
var.sns_topic
35-
)
36-
aws_sns_topic_name = element(split(":",local.aws_sns_topic_arn),5)
32+
0,
33+
),
34+
var.sns_topic
35+
)
36+
aws_sns_topic_name = element(split(":", local.aws_sns_topic_arn), 5)
3737
}
3838

3939
resource "aws_sns_topic_policy" "default" {
@@ -43,7 +43,7 @@ resource "aws_sns_topic_policy" "default" {
4343
}
4444

4545
data "aws_iam_policy_document" "sns_topic_policy" {
46-
count = var.create_sns_topic == true ? 1 : 0
46+
count = var.create_sns_topic == true ? 1 : 0
4747
policy_id = "__default_policy_ID"
4848

4949
statement {

0 commit comments

Comments
 (0)