-
Notifications
You must be signed in to change notification settings - Fork 119
/
template-x86_64.yaml
55 lines (49 loc) · 1.64 KB
/
template-x86_64.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 (x86_64) - Run web applications on AWS Lambda
Parameters:
CargoPkgVersion:
Type: String
Default: latest
Resources:
LambdaAdapterLayerX86:
Type: AWS::Serverless::LayerVersion
Properties:
ContentUri: .
CompatibleArchitectures:
- x86_64
Description: !Sub 'Layer for AWS Lambda Adapter x86_64: ${CargoPkgVersion}'
LicenseInfo: 'Available under the Apache-2.0 license.'
RetentionPolicy: Retain
Metadata:
BuildMethod: makefile
BuildArchitecture: x86_64
LayerVersionPermission:
Type: AWS::Lambda::LayerVersionPermission
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
Action: lambda:GetLayerVersion
LayerVersionArn: !Ref LambdaAdapterLayerX86
Principal: '*'
LambdaAdapterLayerX86Parameter:
Type: AWS::SSM::Parameter
Properties:
Name: /lambda-web-adapter/layer/x86_64/latest
Description: 'Layer ARN for the latest Lambda Web Adapter X86_64 Layer: latest'
Type: String
Value: !Ref LambdaAdapterLayerX86
LambdaAdapterLayerArm64VersionParameter:
Type: AWS::SSM::Parameter
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
Name: !Sub '/lambda-web-adapter/layer/x86_64/${CargoPkgVersion}'
Description: !Sub 'Layer ARN for the latest Lambda Web Adapter X86_64 Layer: ${CargoPkgVersion}'
Type: String
Value: !Ref LambdaAdapterLayerX86
Outputs:
LambdaAdapterLayerX86Arn:
Description: "arn for LambdaAdapterLayerX86"
Value: !Ref LambdaAdapterLayerX86