-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
51 lines (41 loc) · 1.55 KB
/
outputs.tf
File metadata and controls
51 lines (41 loc) · 1.55 KB
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
50
51
// outputs.tf
output "topic_arn" {
description = "The ARN of the SNS topic"
value = aws_sns_topic.this.arn
}
output "topic_id" {
description = "The ID of the SNS topic"
value = aws_sns_topic.this.id
}
output "topic_name" {
description = "The name of the SNS topic"
value = aws_sns_topic.this.name
}
output "topic_owner" {
description = "The AWS Account ID of the SNS topic owner"
value = aws_sns_topic.this.owner
}
output "lambda_subscription_arns" {
description = "ARNs of the Lambda subscriptions"
value = [for subscription in aws_sns_topic_subscription.lambda : subscription.arn]
}
output "sqs_subscription_arns" {
description = "ARNs of the SQS subscriptions"
value = [for subscription in aws_sns_topic_subscription.sqs : subscription.arn]
}
output "email_subscription_arns" {
description = "ARNs of the email subscriptions"
value = [for subscription in aws_sns_topic_subscription.email : subscription.arn]
}
output "http_subscription_arns" {
description = "ARNs of the HTTP/HTTPS subscriptions"
value = [for subscription in aws_sns_topic_subscription.http : subscription.arn]
}
output "sms_subscription_arns" {
description = "ARNs of the SMS subscriptions"
value = [for subscription in aws_sns_topic_subscription.sms : subscription.arn]
}
output "application_subscription_arns" {
description = "ARNs of the application subscriptions"
value = [for subscription in aws_sns_topic_subscription.application : subscription.arn]
}