Skip to content

Commit 000f314

Browse files
olivermeyerLimess
authored andcommitted
Add UI ALB ARN to outputs (outerbounds#23)
1 parent a01e1f9 commit 000f314

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ pre-commit run --all-files
9797
| <a name="output_metaflow_s3_bucket_arn"></a> [metaflow\_s3\_bucket\_arn](#output\_metaflow\_s3\_bucket\_arn) | The ARN of the bucket we'll be using as blob storage |
9898
| <a name="output_metaflow_s3_bucket_name"></a> [metaflow\_s3\_bucket\_name](#output\_metaflow\_s3\_bucket\_name) | The name of the bucket we'll be using as blob storage |
9999
| <a name="output_migration_function_arn"></a> [migration\_function\_arn](#output\_migration\_function\_arn) | ARN of DB Migration Function |
100+
| <a name="output_ui_alb_arn"></a> [ui\_alb\_arn](#output\_ui\_alb\_arn) | UI ALB ARN |
100101
| <a name="output_ui_alb_dns_name"></a> [ui\_alb\_dns\_name](#output\_ui\_alb\_dns\_name) | UI ALB DNS name |
101102
<!-- END_TF_DOCS -->

modules/ui/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ The services are deployed behind an AWS ALB, and the module will output the ALB
3838

3939
| Name | Description |
4040
|------|-------------|
41+
| <a name="output_alb_arn"></a> [alb\_arn](#output\_alb\_arn) | UI ALB ARN |
4142
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | UI ALB DNS name |
4243
<!-- END_TF_DOCS -->

modules/ui/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ output "alb_dns_name" {
33
value = aws_lb.this.dns_name
44
description = "UI ALB DNS name"
55
}
6+
7+
output "alb_arn" {
8+
value = aws_lb.this.arn
9+
description = "UI ALB ARN"
10+
}

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,8 @@ output "ui_alb_dns_name" {
118118
value = module.metaflow-ui.alb_dns_name
119119
description = "UI ALB DNS name"
120120
}
121+
122+
output "ui_alb_arn" {
123+
value = (length(module.metaflow-ui) > 0) ? module.metaflow-ui[0].alb_arn : ""
124+
description = "UI ALB ARN"
125+
}

0 commit comments

Comments
 (0)