Skip to content

Commit d4c69be

Browse files
author
Eugene Cheung
authored
revert: use ARM_64 architecture for Lambda handler (#245)
Fixes #244 Reverts #102 --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
1 parent 0b4aba8 commit d4c69be

File tree

5 files changed

+2
-28
lines changed

5 files changed

+2
-28
lines changed

lib/dashboard/widget/BitmapWidget.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ import * as path from "path";
33
import { Duration, Tags } from "aws-cdk-lib";
44
import { IWidget } from "aws-cdk-lib/aws-cloudwatch";
55
import { Effect, PolicyStatement } from "aws-cdk-lib/aws-iam";
6-
import {
7-
Architecture,
8-
Code,
9-
Function,
10-
IFunction,
11-
Runtime,
12-
} from "aws-cdk-lib/aws-lambda";
6+
import { Code, Function, IFunction, Runtime } from "aws-cdk-lib/aws-lambda";
137
import { RetentionDays } from "aws-cdk-lib/aws-logs";
148
import { Construct } from "constructs";
159

@@ -41,7 +35,6 @@ export class BitmapWidgetRenderingSupport extends Construct {
4135
handler: "index.handler",
4236
memorySize: 128,
4337
runtime: Runtime.NODEJS_14_X,
44-
architecture: Architecture.ARM_64,
4538
timeout: Duration.seconds(60),
4639
logRetention: RetentionDays.ONE_DAY,
4740
});

lib/monitoring/aws-secretsmanager/SecretsManagerMetricsPublisher.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ import { Duration, Names } from "aws-cdk-lib";
44
import { Rule, RuleTargetInput, Schedule } from "aws-cdk-lib/aws-events";
55
import { LambdaFunction } from "aws-cdk-lib/aws-events-targets";
66
import { Effect, PolicyStatement } from "aws-cdk-lib/aws-iam";
7-
import {
8-
Architecture,
9-
Code,
10-
Function,
11-
IFunction,
12-
Runtime,
13-
} from "aws-cdk-lib/aws-lambda";
7+
import { Code, Function, IFunction, Runtime } from "aws-cdk-lib/aws-lambda";
148
import { RetentionDays } from "aws-cdk-lib/aws-logs";
159
import { ISecret } from "aws-cdk-lib/aws-secretsmanager";
1610
import { Construct } from "constructs";
@@ -41,7 +35,6 @@ export class SecretsManagerMetricsPublisher extends Construct {
4135
handler: "index.handler",
4236
memorySize: 128,
4337
runtime: Runtime.NODEJS_14_X,
44-
architecture: Architecture.ARM_64,
4538
timeout: Duration.seconds(60),
4639
logRetention: RetentionDays.ONE_DAY,
4740
});

test/dashboard/widget/__snapshots__/BitmapWidget.test.ts.snap

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/facade/__snapshots__/MonitoringAspect.test.ts.snap

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/monitoring/aws-secretsmanager/__snapshots__/SecretsManagerSecretMonitoring.test.ts.snap

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)