diff --git a/cdk/lib/__snapshots__/snyk-tag-monitor.test.ts.snap b/cdk/lib/__snapshots__/snyk-tag-monitor.test.ts.snap index 68a664a..0be96ba 100644 --- a/cdk/lib/__snapshots__/snyk-tag-monitor.test.ts.snap +++ b/cdk/lib/__snapshots__/snyk-tag-monitor.test.ts.snap @@ -190,6 +190,16 @@ exports[`The SnykTagMonitor stack matches the snapshot 1`] = ` }, "Type": "AWS::CloudWatch::Alarm", }, + "snyktagmonitorEventInvokeConfig5F4D7B41": { + "Properties": { + "FunctionName": { + "Ref": "snyktagmonitor01C2294D", + }, + "MaximumRetryAttempts": 1, + "Qualifier": "$LATEST", + }, + "Type": "AWS::Lambda::EventInvokeConfig", + }, "snyktagmonitorServiceRole8EBA8B3B": { "Properties": { "AssumeRolePolicyDocument": { diff --git a/cdk/lib/snyk-tag-monitor.ts b/cdk/lib/snyk-tag-monitor.ts index 37b7db1..9ae3e74 100644 --- a/cdk/lib/snyk-tag-monitor.ts +++ b/cdk/lib/snyk-tag-monitor.ts @@ -59,7 +59,8 @@ export class SnykTagMonitor extends GuStack { environment: { SNS_TOPIC_ARN: topic.topicArn, }, - timeout: Duration.minutes(5) + timeout: Duration.minutes(5), + retryAttempts: 1 }; const lambda = new GuScheduledLambda(this, app, lambdaProps);