Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output "sns_topic_arn" {
- value = join("", aws_sns_topic.CW-alerts.*.arn)
- }
- output "sns-topics-created" {
- value = formatlist(
- "%s: %s",
- var.sns-topic-recipient[*].name,
- aws_sns_topic.CW-alerts[*].id
- )
- }
- resource "null_resource" "topic-mappings" {
- count = length(var.sns-topic-recipient)
- triggers = {
- name = var.sns-topic-recipient[count.index].name
- topic-id = aws_sns_topic.CW-alerts[count.index].id
- }
- }
- output "sns-topics" {
- value = null_resource.topic-mappings.*.triggers
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement