Skip to content

Commit

Permalink
UPDATE to output ALB URL for Airflow UI at the end of the deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesh-maddegoda committed Feb 12, 2025
1 parent 8c6c0fa commit 6de417a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,8 @@ module "cognito-auth" {
cognito_user_pool_id = var.cognito_user_pool_id
aws_elb_account_id_for_the_region = var.aws_elb_account_id_for_the_region
}

# Output the ALB URL for Airflow UI
output "pds_nucleus_airflow_ui_url" {
value = nonsensitive(module.cognito-auth.pds_nucleus_airflow_ui_url)
}
4 changes: 4 additions & 0 deletions terraform/terraform-modules/cognito-auth/cognito-auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,7 @@ resource "aws_cognito_user_group" "pds_nucleus_viewer_cognito_user_group" {
precedence = 65
role_arn = aws_iam_role.pds_nucleus_viewer_role.arn
}

output "pds_nucleus_airflow_ui_url" {
value = "https://${aws_lb.pds_nucleus_auth_alb.dns_name}:${var.auth_alb_listener_port}/aws_mwaa/aws-console-sso"
}
1 change: 0 additions & 1 deletion terraform/terraform-modules/cognito-auth/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ variable "auth_alb_name" {
variable "auth_alb_listener_port" {
description = "Auth ALB Listener Port"
type = string
sensitive = true
}

variable "auth_alb_listener_certificate_arn" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "aws_rds_cluster" "default" {
}

lifecycle {
ignore_changes = ["availability_zones"]
ignore_changes = [availability_zones]
}
}

Expand Down

0 comments on commit 6de417a

Please sign in to comment.