Skip to content

Commit

Permalink
event trigger changed time v1 nodejs version changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tajewole-moj committed Nov 2, 2023
1 parent cee721c commit cd75d2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/environments/apex/event_triggers.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_cloudwatch_event_rule" "snapshotDBFunctionmon_sun" {
name = "laa-createSnapshotRule-${local.application_name}-${local.environment}-mp"
description = "Daily snapshots of Oracle volumes"
schedule_expression = "cron(57 09 ? * MON-SUN *)"
schedule_expression = "cron(16 10 ? * MON-SUN *)"
}
resource "aws_lambda_permission" "allow_cloudwatch_to_call_check_mon_sun" {
statement_id = "AllowExecutionFromCloudWatch"
Expand Down
4 changes: 2 additions & 2 deletions terraform/environments/apex/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ locals {
#Lambda Function creation
snapshotDBFunctionname = "snapshotDBFunction"
snapshotDBFunctionhandler = "snapshot/dbsnapshot.handler"
snapshotDBFunctionruntime = "nodejs14.x"
snapshotDBFunctionruntime = "nodejs18.x"
snapshotDBFunctionfilename = "dbsnapshot.zip"

deletesnapshotFunctionname = "deletesnapshotFunction"
Expand All @@ -23,7 +23,7 @@ locals {

connectDBFunctionname = "connectDBFunction"
connectDBFunctionhandler = "ssh/dbconnect.handler"
connectDBFunctionruntime = "nodejs14.x"
connectDBFunctionruntime = "nodejs18.x"
connectDBFunctionfilename = "dbconnect.zip"

#layer config
Expand Down

0 comments on commit cd75d2c

Please sign in to comment.