Skip to content

Commit

Permalink
Add outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed Jan 25, 2019
1 parent 777f750 commit d06d8fd
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM GRAPH HOOK -->

Expand Down
6 changes: 6 additions & 0 deletions examples/disabled/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Outputs

| Name | Description |
|------|-------------|
| deadletter\_queues | |
| queues | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7 changes: 7 additions & 0 deletions examples/disabled/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "deadletter_queues" {
value = "${module.example.deadletter_queues}"
}

output "queues" {
value = "${module.example.queues}"
}
6 changes: 6 additions & 0 deletions examples/queues-with-dlq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Outputs

| Name | Description |
|------|-------------|
| deadletter\_queues | |
| queues | |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7 changes: 7 additions & 0 deletions examples/queues-with-dlq/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "deadletter_queues" {
value = "${module.example.deadletter_queues}"
}

output "queues" {
value = "${module.example.queues}"
}
7 changes: 6 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -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("")))}"
}
Binary file modified resource-plan-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d06d8fd

Please sign in to comment.