Skip to content

Commit

Permalink
Merge pull request #211 from NASA-IMPACT/fix/mwaa-variables-features-api
Browse files Browse the repository at this point in the history
Make subnets, sg optional in mwaa variable
  • Loading branch information
smohiudd authored Aug 8, 2024
2 parents b6db3aa + bad705e commit 68e8da1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ resource "local_file" "mwaa_variables" {
stac_ingestor_api_url = var.stac_ingestor_api_url
stac_url = var.stac_url
vector_secret_name = var.vector_secret_name
vector_subnet_1 = data.aws_subnets.private.ids[0]
vector_subnet_2 = data.aws_subnets.private.ids[1]
vector_security_group = aws_security_group.vector_sg[0].id
vector_subnet_1 = length(data.aws_subnets.private.ids) > 0 ? data.aws_subnets.private.ids[0] : ""
vector_subnet_2 = length(data.aws_subnets.private.ids) > 0 ? data.aws_subnets.private.ids[1] : ""
vector_security_group = length(aws_security_group.vector_sg) > 0 ? aws_security_group.vector_sg[0].id : ""
vector_vpc = var.vector_vpc
})
filename = "/tmp/mwaa_vars.json"
Expand Down

0 comments on commit 68e8da1

Please sign in to comment.