Skip to content

Commit

Permalink
Update monitoring.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed May 16, 2024
1 parent 5e4d9d9 commit 0512199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdk/lib/monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Monitoring extends GuStack {
resources: ['*'],
});

const runTimeManagement = `arn:aws:lambda:${region}::runtime:0cdcfbdefbc5e7d3343f73c2e2dd3cba17d61dea0686b404502a0c9ce83931b9`
const runTimeManagementArn = `arn:aws:lambda:${region}::runtime:0cdcfbdefbc5e7d3343f73c2e2dd3cba17d61dea0686b404502a0c9ce83931b9`

const monitoringLambdaFunction = new GuLambdaFunction(
this,
Expand All @@ -49,7 +49,7 @@ export class Monitoring extends GuStack {
fileName: `${lambdaBaseName}-lambda-${region}.zip`,
handler: 'index.handler',
runtime: Runtime.NODEJS_18_X,
runtimeManagementMode: RuntimeManagementMode.manual(runTimeManagement),
runtimeManagementMode: RuntimeManagementMode.manual(runTimeManagementArn),
timeout: Duration.seconds(300),
memorySize: 2048,
initialPolicy: [policyStatement],
Expand Down

1 comment on commit 0512199

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 91.04% 254/279
🟢 Branches 81.67% 98/120
🟢 Functions 88.57% 62/70
🟢 Lines 90.74% 245/270

Test suite run success

331 tests passing in 16 suites.

Report generated by 🧪jest coverage report action from 0512199

Please sign in to comment.