Skip to content

Commit 4b12f8d

Browse files
Merge pull request #4 from observeinc/fix/switch-runtime
fix: deprecate go1.x for provided.al2
2 parents fb05e5c + 55d586f commit 4b12f8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/lambda.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Resources:
109109
- lambdaLogGroup
110110
Properties:
111111
FunctionName: !Ref 'AWS::StackName'
112-
Handler: main
112+
Handler: bootstrap
113113
Role: !GetAtt 'role.Arn'
114114
Environment:
115115
Variables:
@@ -121,14 +121,16 @@ Resources:
121121
- !Ref 'AWS::NoValue'
122122
Code:
123123
S3Bucket: !FindInMap [RegionMap, !Ref 'AWS::Region', BucketName]
124-
S3Key: !Sub 'lambda/observer/${Version}.zip'
125-
Runtime: go1.x
124+
S3Key: !Sub 'lambda/observer/arm64/${Version}.zip'
125+
Runtime: provided.al2
126126
MemorySize: !Ref MemorySize
127127
Timeout: !Ref Timeout
128128
ReservedConcurrentExecutions: !If
129129
- HasReservedConcurrency
130130
- !Ref ReservedConcurrentExecutions
131131
- !Ref 'AWS::NoValue'
132+
Architectures:
133+
- arm64
132134
role:
133135
Type: AWS::IAM::Role
134136
Properties:

0 commit comments

Comments
 (0)