Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propogates NWM_DATAFLOW_VERSION var where missed #494

Merged
merged 1 commit into from
Jul 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Core/LAMBDA/viz_functions/image_based/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ variable "default_tags" {
type = map(string)
}

variable "nwm_dataflow_version" {
type = string
}

locals {
viz_optimize_rasters_lambda_name = "hv_vpp_optimize_rasters_${var.environment}"
viz_hand_fim_processing_lambda_name = "hv_vpp_hand_fim_processing_${var.environment}"
Expand Down Expand Up @@ -122,6 +126,7 @@ data "archive_file" "raster_processing_zip" {
IMAGE_REPO_NAME = aws_ecr_repository.viz_raster_processing_image.name
IMAGE_TAG = var.ecr_repository_image_tag
LAMBDA_ROLE_ARN = var.lambda_role
NWM_DATAFLOW_VERSION = var.nwm_dataflow_version
})
filename = "serverless.yml"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ functions:
memorySize: 2560
timeout: 900
ephemeralStorageSize: 1024
environment:
NWM_DATAFLOW_VERSION: ${NWM_DATAFLOW_VERSION}

2 changes: 2 additions & 0 deletions Core/LAMBDA/viz_functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ resource "aws_lambda_function" "viz_max_values" {
variables = {
CACHE_DAYS = 1
DATA_BUCKET_UPLOAD = var.fim_data_bucket
NWM_DATAFLOW_VERSION = var.nwm_dataflow_version
}
}
s3_bucket = aws_s3_object.max_values_zip_upload.bucket
Expand Down Expand Up @@ -771,6 +772,7 @@ module "image_based_lambdas" {
egis_db_host = var.egis_db_host
egis_db_user_secret_string = var.egis_db_user_secret_string
default_tags = var.default_tags
nwm_dataflow_version = var.nwm_dataflow_version
}

########################################################################################################################################
Expand Down