diff --git a/README.md b/README.md index 81fbd3f..16ed6fa 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,13 @@ module "" { | team | TAG: Department/team of people responsible for service | string | `"UNDEF-SQS"` | no | | visibility\_timeout\_seconds | The visibility timeout for the queue | string | `"600"` | no | +## Outputs + +| Name | Description | +|------|-------------| +| deadletter\_queues | | +| queues | | + diff --git a/examples/disabled/README.md b/examples/disabled/README.md index aea2b74..0982aed 100644 --- a/examples/disabled/README.md +++ b/examples/disabled/README.md @@ -17,5 +17,11 @@ terraform apply Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources. +## Outputs + +| Name | Description | +|------|-------------| +| deadletter\_queues | | +| queues | | diff --git a/examples/disabled/outputs.tf b/examples/disabled/outputs.tf new file mode 100644 index 0000000..9b2f738 --- /dev/null +++ b/examples/disabled/outputs.tf @@ -0,0 +1,7 @@ +output "deadletter_queues" { + value = "${module.example.deadletter_queues}" +} + +output "queues" { + value = "${module.example.queues}" +} diff --git a/examples/queues-with-dlq/README.md b/examples/queues-with-dlq/README.md index bd90c29..6b10190 100644 --- a/examples/queues-with-dlq/README.md +++ b/examples/queues-with-dlq/README.md @@ -15,5 +15,11 @@ terraform apply Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources. +## Outputs + +| Name | Description | +|------|-------------| +| deadletter\_queues | | +| queues | | diff --git a/examples/queues-with-dlq/outputs.tf b/examples/queues-with-dlq/outputs.tf new file mode 100644 index 0000000..9b2f738 --- /dev/null +++ b/examples/queues-with-dlq/outputs.tf @@ -0,0 +1,7 @@ +output "deadletter_queues" { + value = "${module.example.deadletter_queues}" +} + +output "queues" { + value = "${module.example.queues}" +} diff --git a/outputs.tf b/outputs.tf index b8d762d..c7470ab 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,2 +1,7 @@ -# id, arn +output "deadletter_queues" { + value = "${compact(concat(aws_sqs_queue.queue_deadletter.*.id, list("")))}" +} +output "queues" { + value = "${compact(concat(aws_sqs_queue.queue.*.id, aws_sqs_queue.queue_with_dlq.*.id, list("")))}" +} diff --git a/resource-plan-graph.png b/resource-plan-graph.png index 061cd78..7ab0099 100644 Binary files a/resource-plan-graph.png and b/resource-plan-graph.png differ