Advertisement
Guest User

Untitled

a guest
Nov 24th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. output "sns_topic_arn" {
  2. value = join("", aws_sns_topic.CW-alerts.*.arn)
  3. }
  4.  
  5. output "sns-topics-created" {
  6. value = formatlist(
  7. "%s: %s",
  8. var.sns-topic-recipient[*].name,
  9. aws_sns_topic.CW-alerts[*].id
  10. )
  11. }
  12.  
  13. resource "null_resource" "topic-mappings" {
  14. count = length(var.sns-topic-recipient)
  15.  
  16. triggers = {
  17. name = var.sns-topic-recipient[count.index].name
  18. topic-id = aws_sns_topic.CW-alerts[count.index].id
  19. }
  20. }
  21.  
  22. output "sns-topics" {
  23. value = null_resource.topic-mappings.*.triggers
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement