Skip to content

Commit

Permalink
Merge pull request #206 from NASA-IMPACT/gc/mimic_main
Browse files Browse the repository at this point in the history
We Need All Those Things We Deleted
  • Loading branch information
ranchodeluxe authored Aug 8, 2024
2 parents 694ffca + 1c290fc commit d497aff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dags/veda_data_pipeline/veda_process_vector_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
mwaa_stack_conf = Variable.get(
"MWAA_STACK_CONF", default_var={}, deserialize_json=True
)
vector_ecs_conf = Variable.get("VECTOR_ECS_CONF", deserialize_json=True)

ingest_vector = EcsRunTaskOperator(
task_id="ingest_vector",
Expand Down Expand Up @@ -96,8 +97,8 @@
},
network_configuration={
"awsvpcConfiguration": {
"securityGroups": mwaa_stack_conf.get("SECURITYGROUPS"),
"subnets": mwaa_stack_conf.get("SUBNETS"),
"securityGroups": vector_ecs_conf.get("VECTOR_SECURITY_GROUP"),
"subnets": vector_ecs_conf.get("VECTOR_SUBNETS"),
},
},
awslogs_group=mwaa_stack_conf.get("LOG_GROUP_NAME"),
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ 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.id
vector_vpc = var.vector_vpc
})
filename = "/tmp/mwaa_vars.json"
}
Expand Down
6 changes: 5 additions & 1 deletion infrastructure/mwaa_environment_variables.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
"COGNITO_APP_SECRET": "${cognito_app_secret}",
"STAC_INGESTOR_API_URL": "${stac_ingestor_api_url}",
"STAC_URL": "${stac_url}",
"VECTOR_SECRET_NAME": "${vector_secret_name}"
"VECTOR_SECRET_NAME": "${vector_secret_name}",
"VECTOR_ECS_CONF":{
"VECTOR_SECURITY_GROUP": ["${vector_security_group}"],
"VECTOR_SUBNETS": ["${vector_subnet_1}", "${vector_subnet_2}"]
}
}

0 comments on commit d497aff

Please sign in to comment.