Skip to content

Commit

Permalink
Merge pull request #242 from NASA-IMPACT/fix/vector-automation
Browse files Browse the repository at this point in the history
update vector subnet ref
  • Loading branch information
smohiudd authored Oct 18, 2024
2 parents 006e989 + f181ca7 commit 39401a0
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 @@ -54,7 +54,7 @@ module "custom_policy" {
vector_secret_name = var.vector_secret_name
}

data "aws_subnets" "private" {
data "aws_subnets" "vector_aws_subnets" {
filter {
name = "vpc-id"
values = [var.vector_vpc == null ? "" : var.vector_vpc]
Expand Down Expand Up @@ -109,8 +109,8 @@ 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 = length(data.aws_subnets.subnet_ids.ids) > 0 ? data.aws_subnets.subnet_ids.ids[0] : ""
vector_subnet_2 = length(data.aws_subnets.subnet_ids.ids) > 0 ? data.aws_subnets.subnet_ids.ids[1] : ""
vector_subnet_1 = length(data.aws_subnets.vector_aws_subnets.subnet_ids.ids) > 0 ? data.aws_subnets.vector_aws_subnets.subnet_ids.ids[0] : ""
vector_subnet_2 = length(data.aws_subnets.vector_aws_subnets.subnet_ids.ids) > 0 ? data.aws_subnets.vector_aws_subnets.subnet_ids.ids[1] : ""
vector_security_group = length(aws_security_group.vector_sg) > 0 ? aws_security_group.vector_sg[0].id : ""
vector_vpc = var.vector_vpc
})
Expand Down

0 comments on commit 39401a0

Please sign in to comment.