Skip to content

Commit

Permalink
[PRMP-1469] switch the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Jan 29, 2025
1 parent 93cf8c5 commit d60ea17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/modules/sns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_sns_topic" "sns_topic" {
}

resource "aws_sns_topic_subscription" "sns_subscription_single" {
count = var.is_topic_endpoint_list ? 1 : 0
count = var.is_topic_endpoint_list ? 0 : 1
topic_arn = aws_sns_topic.sns_topic.arn
protocol = var.topic_protocol
endpoint = var.topic_endpoint
Expand Down

0 comments on commit d60ea17

Please sign in to comment.