Skip to content

Commit da98dec

Browse files
authored
Switch hook to ARM (#41)
πŸͺπŸ΄β€β˜ οΈ
1 parent 03c7657 commit da98dec

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@seek/aws-codedeploy-infra': minor
3+
---
4+
5+
HookStack: Switch hook to ARM

β€Žpackages/infra/src/constructs/__snapshots__/stack.test.ts.snapβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ exports[`returns expected CloudFormation stack 1`] = `
1717
"BeforeAllowTrafficHookServiceRole78A95A40",
1818
],
1919
"Properties": {
20+
"Architectures": [
21+
"arm64",
22+
],
2023
"Code": {
2124
"S3Bucket": {
2225
"Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",

β€Žpackages/infra/src/constructs/lambda.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import path from 'path';
33
import { Duration, aws_lambda } from 'aws-cdk-lib';
44

55
export const createLambdaHookProps = (): aws_lambda.FunctionProps => ({
6+
architecture: aws_lambda.Architecture.ARM_64,
7+
68
code: aws_lambda.Code.fromAsset(
79
path.join(__dirname, '..', 'assets', 'handlers'),
810
),

0 commit comments

Comments
Β (0)