Skip to content

Commit

Permalink
Merge pull request #219 from NASA-IMPACT/fix/assume-role-arns
Browse files Browse the repository at this point in the history
Check length of assume role arns
  • Loading branch information
smohiudd authored Aug 14, 2024
2 parents 4a6391e + b91871d commit f252f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ resource "local_file" "mwaa_variables" {
ecs_cluster_name = module.mwaa.cluster_name
log_group_name = module.mwaa.log_group_name
mwaa_execution_role_arn = module.mwaa.mwaa_role_arn
assume_role_read_arn = var.assume_role_arns[0]
assume_role_write_arn = var.assume_role_arns[0]
assume_role_read_arn = length(var.assume_role_arns) > 0 ? var.assume_role_arns[0] : ""
assume_role_write_arn = length(var.assume_role_arns) > 0 ? var.assume_role_arns[1] : ""
account_id = local.account_id
aws_region = local.aws_region
cognito_app_secret = var.workflows_client_secret
Expand Down

0 comments on commit f252f3d

Please sign in to comment.