We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4bb03 commit 8f9c335Copy full SHA for 8f9c335
autotagging.tf
@@ -50,7 +50,7 @@ resource "aws_sqs_queue" "auto_tagging" {
50
}
51
52
resource "aws_sns_topic_subscription" "auto_tagging" {
53
- count = var.sns_topic_arn == "" ? 0 : 1
+ count = var.enable_auto_tagging == true ? var.sns_topic_arn == "" ? 0 : 1 : 0
54
55
topic_arn = var.sns_topic_arn
56
protocol = "sqs"
@@ -99,7 +99,7 @@ data "aws_iam_policy_document" "auto_tagging_sqs" {
99
100
101
data "aws_iam_policy_document" "auto_tagging_sns" {
102
103
104
statement {
105
effect = "Allow"
0 commit comments