Skip to content

Commit

Permalink
ADD OPENSEARCH_ENDPOINT and OPENSEARCH_CREDENTIAL_RELATIVE_URL as env…
Browse files Browse the repository at this point in the history
… variables
  • Loading branch information
ramesh-maddegoda committed Nov 7, 2024
1 parent fc2eff0 commit 2bc5a26
Showing 1 changed file with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,20 @@ resource "aws_lambda_function" "pds_nucleus_product_completion_checker_function"

environment {
variables = {
AIRFLOW_DAG_NAME = "${var.pds_node_names[count.index]}-${var.pds_nucleus_default_airflow_dag_id}"
DB_CLUSTER_ARN = aws_rds_cluster.default.arn
DB_SECRET_ARN = aws_secretsmanager_secret.pds_nucleus_rds_credentials.arn
EFS_MOUNT_PATH = "/mnt/data"
ES_AUTH_CONFIG_FILE_PATH = "/etc/es-auth.cfg"
ES_URL = var.pds_nucleus_opensearch_urls[count.index]
PDS_NODE_NAME = var.pds_node_names[count.index]
PDS_NUCLEUS_CONFIG_BUCKET_NAME = var.pds_nucleus_config_bucket_name
REPLACE_PREFIX_WITH = var.pds_nucleus_harvest_replace_prefix_with_list[count.index]
PDS_MWAA_ENV_NAME = var.airflow_env_name
PDS_HOT_ARCHIVE_S3_BUCKET_NAME = "${lower(replace(var.pds_node_names[count.index], "_", "-"))}-${var.pds_nucleus_hot_archive_bucket_name_postfix}"
PDS_COLD_ARCHIVE_S3_BUCKET_NAME = "${lower(replace(var.pds_node_names[count.index], "_", "-"))}-${var.pds_nucleus_cold_archive_bucket_name_postfix}"
PDS_STAGING_S3_BUCKET_NAME = aws_s3_bucket.pds_nucleus_s3_staging_bucket[count.index].id
AIRFLOW_DAG_NAME = "${var.pds_node_names[count.index]}-${var.pds_nucleus_default_airflow_dag_id}"
DB_CLUSTER_ARN = aws_rds_cluster.default.arn
DB_SECRET_ARN = aws_secretsmanager_secret.pds_nucleus_rds_credentials.arn
EFS_MOUNT_PATH = "/mnt/data"
ES_AUTH_CONFIG_FILE_PATH = "/etc/es-auth.cfg"
OPENSEARCH_ENDPOINT = var.pds_nucleus_opensearch_urls[count.index]
OPENSEARCH_CREDENTIAL_RELATIVE_URL = var.pds_nucleus_opensearch_credential_relative_url
PDS_NODE_NAME = var.pds_node_names[count.index]
PDS_NUCLEUS_CONFIG_BUCKET_NAME = var.pds_nucleus_config_bucket_name
REPLACE_PREFIX_WITH = var.pds_nucleus_harvest_replace_prefix_with_list[count.index]
PDS_MWAA_ENV_NAME = var.airflow_env_name
PDS_HOT_ARCHIVE_S3_BUCKET_NAME = "${lower(replace(var.pds_node_names[count.index], "_", "-"))}-${var.pds_nucleus_hot_archive_bucket_name_postfix}"
PDS_COLD_ARCHIVE_S3_BUCKET_NAME = "${lower(replace(var.pds_node_names[count.index], "_", "-"))}-${var.pds_nucleus_cold_archive_bucket_name_postfix}"
PDS_STAGING_S3_BUCKET_NAME = aws_s3_bucket.pds_nucleus_s3_staging_bucket[count.index].id
}
}
}
Expand Down

0 comments on commit 2bc5a26

Please sign in to comment.