-
Notifications
You must be signed in to change notification settings - Fork 126
/
template-arm64.yaml
55 lines (49 loc) · 1.65 KB
/
template-arm64.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
AWS Lambda Adapter (Arm64) - Run web applications on AWS Lambda
Parameters:
CargoPkgVersion:
Type: String
Default: latest
Resources:
LambdaAdapterLayerArm64:
Type: AWS::Serverless::LayerVersion
Properties:
ContentUri: .
CompatibleArchitectures:
- arm64
Description: !Sub 'Layer for AWS Lambda Adapter arm64: ${CargoPkgVersion}'
LicenseInfo: 'Available under the Apache-2.0 license.'
RetentionPolicy: Retain
Metadata:
BuildMethod: makefile
BuildArchitecture: arm64
LayerVersionPermission:
Type: AWS::Lambda::LayerVersionPermission
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref LambdaAdapterLayerArm64
Principal: '*'
LambdaAdapterLayerArm64Parameter:
Type: AWS::SSM::Parameter
Properties:
Name: /lambda-web-adapter/layer/arm64/latest
Description: 'Layer ARN for the latest Lambda Web Adapter Arm64 Layer: latest'
Type: String
Value: !Ref LambdaAdapterLayerArm64
LambdaAdapterLayerArm64VersionParameter:
Type: AWS::SSM::Parameter
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
Name: !Sub '/lambda-web-adapter/layer/arm64/${CargoPkgVersion}'
Description: !Sub 'Layer ARN for the latest Lambda Web Adapter Arm64 Layer: ${CargoPkgVersion}'
Type: String
Value: !Ref LambdaAdapterLayerArm64
Outputs:
LambdaAdapterLayerArm64Arn:
Description: "arn for LambdaAdapterLayerArm64"
Value: !Ref LambdaAdapterLayerArm64