Skip to content

Commit

Permalink
add output (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Montek30 authored Jun 1, 2023
1 parent fb391a4 commit b4e66a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ No modules.
| <a name="output_broker_arn"></a> [broker\_arn](#output\_broker\_arn) | AmazonMQ broker ARN. |
| <a name="output_broker_id"></a> [broker\_id](#output\_broker\_id) | AmazonMQ broker ID. |
| <a name="output_broker_instances"></a> [broker\_instances](#output\_broker\_instances) | AmazonMQ broker instances details. |
| <a name="output_nlb_dns_name"></a> [nlb\_dns\_name](#output\_nlb\_dns\_name) | NLB DNS Name. |
| <a name="output_nlb_zone_id"></a> [nlb\_zone\_id](#output\_nlb\_zone\_id) | NLB Zone Id. |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## License
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_mq_broker" "main" {

authentication_strategy = var.authentication_strategy

security_groups = var.create_security_group ? [aws_security_group.main.id] : var.security_groups
security_groups = var.create_security_group ? [aws_security_group.main[0].id] : var.security_groups

dynamic "configuration" {
for_each = var.configuration_enabled ? ["true"] : []
Expand Down
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ output "broker_instances" {
value = aws_mq_broker.main.instances
description = "AmazonMQ broker instances details."
}

output "nlb_dns_name" {
value = aws_lb.main.dns_name
description = "NLB DNS Name."
}

output "nlb_zone_id" {
value = aws_lb.main.zone_id
description = "NLB Zone Id."
}

0 comments on commit b4e66a5

Please sign in to comment.