forked from cloudposse/terraform-aws-sns-topic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
49 lines (40 loc) · 1.46 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
output "sns_topic" {
value = local.enabled ? aws_sns_topic.this[0] : null
description = "SNS topic."
}
output "sns_topic_name" {
value = local.enabled ? local.sns_topic_name : null
description = "SNS topic name."
}
output "sns_topic_id" {
value = local.enabled ? aws_sns_topic.this[0].id : null
description = "SNS topic ID."
}
output "sns_topic_arn" {
value = local.enabled ? aws_sns_topic.this[0].arn : null
description = "SNS topic ARN."
}
output "sns_topic_owner" {
value = local.enabled ? aws_sns_topic.this[0].owner : null
description = "SNS topic owner."
}
output "aws_sns_topic_subscriptions" {
value = local.enabled ? aws_sns_topic_subscription.this : null
description = "SNS topic subscription."
}
output "dead_letter_queue_url" {
description = "The URL for the created dead letter SQS queue."
value = local.sqs_dlq_enabled ? aws_sqs_queue.dead_letter_queue[0].url : null
}
output "dead_letter_queue_id" {
description = "The ID for the created dead letter queue. Same as the URL."
value = local.sqs_dlq_enabled ? aws_sqs_queue.dead_letter_queue[0].id : null
}
output "dead_letter_queue_name" {
description = "The name for the created dead letter queue."
value = local.sqs_dlq_enabled ? local.sqs_queue_name : null
}
output "dead_letter_queue_arn" {
description = "The ARN of the dead letter queue."
value = local.sqs_dlq_enabled ? aws_sqs_queue.dead_letter_queue[0].arn : null
}