Skip to content

Commit e5b650c

Browse files
ranchodeluxeranchodeluxe
andauthored
Fold in RDS and Lambda Changes from 1.2.1 Release Two Weeks Ago (#33)
* .gitignore * fold in RDS and lambda changes --------- Co-authored-by: ranchodeluxe <greg.corradini@gmail.com>
1 parent 857a3e0 commit e5b650c

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

terraform/veda-wfs3/functions/s3_event_bridge_to_sfn_execute/lambda_function.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import base64
55
import ast
66
import json
7+
#mwaa_env_name = 'veda-pipeline-dev-mwaa'
78
mwaa_env_name = 'veda-pipeline-staging-mwaa'
89
dag_name = 'veda_discover'
910
mwaa_cli_command = 'dags trigger'
@@ -20,25 +21,10 @@ def lambda_handler(event, context):
2021
s3_filename_no_ext = os.path.splitext(s3_filename_target)[0]
2122
print(f"[ S3 FILENAME NO EXT ]: {s3_filename_no_ext}")
2223

23-
if s3_filename_target.endswith(".gpkg"):
24-
return {
25-
'statusCode': 200,
26-
'body': json.dumps('Hello from Lambda!')
27-
}
28-
29-
if s3_event_key.startswith("EIS/FEDSoutput-v3"):
30-
return {
31-
'statusCode': 200,
32-
'body': json.dumps('Hello from Lambda!')
33-
}
34-
3524
bucket_key_prefix = "EIS/FEDSoutput/Snapshot/"
36-
if s3_event_key.startswith("EIS/FEDSoutput-v3"):
37-
bucket_key_prefix = "EIS/FEDSoutput-v3/Snapshot/"
3825
if s3_filename_no_ext.startswith("lf_"):
3926
bucket_key_prefix = "EIS/FEDSoutput/LFArchive/"
4027

41-
4228
# get web token
4329
mwaa_cli_token = client.create_cli_token(
4430
Name=mwaa_env_name

terraform/veda-wfs3/rds.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ resource "aws_db_instance" "db" {
5454
db_subnet_group_name = aws_db_subnet_group.db.name
5555
vpc_security_group_ids = module.networking.security_groups_ids
5656
skip_final_snapshot = true
57+
ca_cert_identifier = "rds-ca-rsa4096-g1"
5758
apply_immediately = true
5859
backup_retention_period = 7
5960
username = "postgres"

0 commit comments

Comments
 (0)