Skip to content

Commit f85d05f

Browse files
committed
[NDR-74] sqs output descriptions
1 parent 1e78ef2 commit f85d05f

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

infrastructure/modules/sqs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ module "sqs_queue" {
8989

9090
| Name | Description |
9191
|------|-------------|
92-
| <a name="output_dlq_name"></a> [dlq\_name](#output\_dlq\_name) | n/a |
92+
| <a name="output_dlq_name"></a> [dlq\_name](#output\_dlq\_name) | Name of the dead-letter queue (DLQ), if created. |
9393
| <a name="output_endpoint"></a> [endpoint](#output\_endpoint) | The SQS queue ARN e.g. for use when setting the queue as the endpoint of an SNS topic. |
94-
| <a name="output_sqs_arn"></a> [sqs\_arn](#output\_sqs\_arn) | n/a |
95-
| <a name="output_sqs_id"></a> [sqs\_id](#output\_sqs\_id) | n/a |
96-
| <a name="output_sqs_read_policy_document"></a> [sqs\_read\_policy\_document](#output\_sqs\_read\_policy\_document) | n/a |
97-
| <a name="output_sqs_url"></a> [sqs\_url](#output\_sqs\_url) | n/a |
98-
| <a name="output_sqs_write_policy_document"></a> [sqs\_write\_policy\_document](#output\_sqs\_write\_policy\_document) | n/a |
94+
| <a name="output_sqs_arn"></a> [sqs\_arn](#output\_sqs\_arn) | Amazon Resource Name (ARN) of the primary SQS queue. |
95+
| <a name="output_sqs_id"></a> [sqs\_id](#output\_sqs\_id) | ID of the main SQS queue. |
96+
| <a name="output_sqs_read_policy_document"></a> [sqs\_read\_policy\_document](#output\_sqs\_read\_policy\_document) | IAM policy document granting read access to the SQS queue. |
97+
| <a name="output_sqs_url"></a> [sqs\_url](#output\_sqs\_url) | URL of the SQS queue for use with API clients or AWS SDKs. |
98+
| <a name="output_sqs_write_policy_document"></a> [sqs\_write\_policy\_document](#output\_sqs\_write\_policy\_document) | IAM policy document granting write access to the SQS queue. |
9999
<!-- END_TF_DOCS -->

infrastructure/modules/sqs/variable.tf

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,31 @@ output "endpoint" {
9898
}
9999

100100
output "sqs_arn" {
101-
value = aws_sqs_queue.sqs_queue.arn
101+
description = "Amazon Resource Name (ARN) of the primary SQS queue."
102+
value = aws_sqs_queue.sqs_queue.arn
102103
}
103104

104105
output "sqs_id" {
105-
value = aws_sqs_queue.sqs_queue.id
106+
description = "ID of the main SQS queue."
107+
value = aws_sqs_queue.sqs_queue.id
106108
}
107109

108110
output "sqs_url" {
109-
value = aws_sqs_queue.sqs_queue.url
111+
description = "URL of the SQS queue for use with API clients or AWS SDKs."
112+
value = aws_sqs_queue.sqs_queue.url
110113
}
111114

112115
output "sqs_read_policy_document" {
113-
value = data.aws_iam_policy_document.sqs_read_policy.json
116+
description = "IAM policy document granting read access to the SQS queue."
117+
value = data.aws_iam_policy_document.sqs_read_policy.json
114118
}
115119

116120
output "sqs_write_policy_document" {
117-
value = data.aws_iam_policy_document.sqs_write_policy.json
121+
description = "IAM policy document granting write access to the SQS queue."
122+
value = data.aws_iam_policy_document.sqs_write_policy.json
118123
}
124+
119125
output "dlq_name" {
120-
value = var.enable_dlq ? aws_sqs_queue.queue_deadletter[0].name : null
126+
description = "Name of the dead-letter queue (DLQ), if created."
127+
value = var.enable_dlq ? aws_sqs_queue.queue_deadletter[0].name : null
121128
}

0 commit comments

Comments
 (0)