Skip to content

Commit

Permalink
Deployment Fixes (#632)
Browse files Browse the repository at this point in the history
various small fixes to allow deployment and some hotfixes that were
applied manually.
  • Loading branch information
nickchadwick-noaa committed Feb 21, 2024
1 parent f7fa6e8 commit cf420b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Core/LAMBDA/rnr_functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ resource "aws_s3_object" "rnr_domain_generator_zip_upload" {
resource "aws_lambda_function" "rnr_domain_generator" {
function_name = "hv-vpp-${var.environment}-rnr-domain-generator"
description = "Lambda function to run Replace and Route model."
memory_size = 128
memory_size = 512
timeout = 900
vpc_config {
security_group_ids = var.db_lambda_security_groups
Expand Down
4 changes: 2 additions & 2 deletions Core/LAMBDA/viz_functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ resource "aws_lambda_function" "viz_python_preprocessing_3GB" {
description = "Lambda function to create max streamflow files for NWM data"
memory_size = 3072
ephemeral_storage {
size = 6656
size = 10240
}
timeout = 900

Expand Down Expand Up @@ -453,7 +453,7 @@ resource "aws_lambda_function" "viz_python_preprocessing_10GB" {
description = "Lambda function to create max streamflow files for NWM data"
memory_size = 10240
ephemeral_storage {
size = 6656
size = 10240
}
timeout = 900

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- We'll temporarily increase work_mem to 512MB, to help with performance on PostGIS spatial joins (default is 4MB)
SET work_mem TO '512MB';
--
DROP TABLE IF EXISTS publish.mrf_gfs_max_inundation_5day_public;

SELECT
Expand Down
2 changes: 1 addition & 1 deletion Core/RDS/viz/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "aws_db_parameter_group" "hydrovis" {
parameter {
name = "idle_in_transaction_session_timeout"
value = "900000"
apply_method = "immediate"
apply_method = "pending-reboot"
}

parameter {
Expand Down
2 changes: 0 additions & 2 deletions Core/VPC/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ locals {
resource "aws_vpc" "main" {
cidr_block = var.vpc_ip_block
instance_tenancy = "default"
enable_classiclink = false
enable_classiclink_dns_support = false
enable_dns_hostnames = true
enable_dns_support = true

Expand Down

0 comments on commit cf420b6

Please sign in to comment.