From 103f2fe2e6a96e0fd6476a1b52daed87dd532764 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Mon, 1 Apr 2024 17:47:27 -0700 Subject: [PATCH] Add a new cloud watch trigger rule Signed-off-by: Prudhvi Godithi --- build.gradle | 2 +- infrastructure/lib/stacks/metricsWorkflow.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 738c9cb..ca24666 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ dependencies { implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.3' implementation 'org.opensearch.client:opensearch-rest-high-level-client:2.11.0' implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1' - implementation 'software.amazon.awssdk:sts:2.21.33' + implementation 'software.amazon.awssdk:sts:2.25.21' implementation 'io.github.acm19:aws-request-signing-apache-interceptor:2.3.1' implementation 'com.amazonaws:aws-lambda-java-core:1.2.3' diff --git a/infrastructure/lib/stacks/metricsWorkflow.ts b/infrastructure/lib/stacks/metricsWorkflow.ts index 57b3411..bf6f911 100644 --- a/infrastructure/lib/stacks/metricsWorkflow.ts +++ b/infrastructure/lib/stacks/metricsWorkflow.ts @@ -29,10 +29,14 @@ export class OpenSearchMetricsWorkflowStack extends Stack { stateMachineName: 'OpenSearchMetricsWorkflow' }) - new Rule(this, 'MetricsWorkflow', { + new Rule(this, 'MetricsWorkflow-11AM-PST', { schedule: Schedule.expression('cron(0 18 * * ? *)'), targets: [new SfnStateMachine(opensearchMetricsWorkflow)], }); + new Rule(this, 'MetricsWorkflow-1AM-PST', { + schedule: Schedule.expression('cron(0 8 * * ? *)'), + targets: [new SfnStateMachine(opensearchMetricsWorkflow)], + }); } private createMetricsTask(scope: Construct, opensearchDomainStack: OpenSearchDomainStack,