Skip to content

Commit 23cf2f6

Browse files
justinsoongjnonino
andauthored
Create outputs for the LB logging S3 bucket (#22)
* Create outputs for the LB logging s3 bucket * add new line Co-authored-by: Julian Nonino <jnonino@users.noreply.github.com> Co-authored-by: Julian Nonino <jnonino@users.noreply.github.com>
1 parent 9f4d07f commit 23cf2f6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,6 @@ No modules.
142142
| <a name="output_lb_https_tgs_map_arn_port"></a> [lb\_https\_tgs\_map\_arn\_port](#output\_lb\_https\_tgs\_map\_arn\_port) | n/a |
143143
| <a name="output_lb_https_tgs_names"></a> [lb\_https\_tgs\_names](#output\_lb\_https\_tgs\_names) | List of HTTPS Target Groups Names |
144144
| <a name="output_lb_https_tgs_ports"></a> [lb\_https\_tgs\_ports](#output\_lb\_https\_tgs\_ports) | List of HTTPS Target Groups ports |
145+
| <a name="output_lb_logs_s3_bucket_arn"></a> [lb\_logs\_s3\_bucket\_arn](#output\_lb\_logs\_s3\_bucket\_arn) | LB Logging S3 Bucket ARN |
146+
| <a name="output_lb_logs_s3_bucket_id"></a> [lb\_logs\_s3\_bucket\_id](#output\_lb\_logs\_s3\_bucket\_id) | LB Logging S3 Bucket ID |
145147
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

outputs.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,16 @@ output "lb_https_listeners_arns" {
148148
description = "List of HTTPS Listeners ARNs"
149149
value = [for listener in aws_lb_listener.lb_https_listeners : listener.arn]
150150
}
151+
152+
#------------------------------------------------------------------------------
153+
# S3 LB Logging Bucket
154+
#------------------------------------------------------------------------------
155+
output "lb_logs_s3_bucket_id" {
156+
description = "LB Logging S3 Bucket ID"
157+
value = aws_s3_bucket.logs.id
158+
}
159+
160+
output "lb_logs_s3_bucket_arn" {
161+
description = "LB Logging S3 Bucket ARN"
162+
value = aws_s3_bucket.logs.arn
163+
}

0 commit comments

Comments
 (0)