Skip to content

Commit

Permalink
Merge pull request #163 from umccr/fix-srm-arch-arm64
Browse files Browse the repository at this point in the history
Fixed SequenceRunManager architecture to ARM64
  • Loading branch information
victorskl authored Mar 18, 2024
2 parents 8b49a71 + b2b592f commit a25b2a1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations
import { HttpMethod, HttpRoute, HttpRouteKey, HttpStage } from 'aws-cdk-lib/aws-apigatewayv2';
import { ManagedPolicy, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
import { SRMApiGatewayConstruct } from './apigw/component';
import { Architecture } from 'aws-cdk-lib/aws-lambda';

export interface SequenceRunManagerProps {
securityGroups: ISecurityGroup[];
Expand Down Expand Up @@ -56,6 +57,7 @@ export class SequenceRunManagerStack extends Stack {
this.baseLayer = new PythonLayerVersion(this, this.id + 'Layer', {
entry: path.join(__dirname, '../deps'),
compatibleRuntimes: [this.lambdaRuntimePythonVersion],
compatibleArchitectures: [Architecture.ARM_64],
});

this.createMigrationHandler();
Expand All @@ -73,6 +75,7 @@ export class SequenceRunManagerStack extends Stack {
vpc: this.props.vpc,
vpcSubnets: { subnets: this.props.vpc.privateSubnets },
role: this.lambdaRole,
architecture: Architecture.ARM_64,
...props,
});
}
Expand Down

0 comments on commit a25b2a1

Please sign in to comment.