@@ -8,6 +8,17 @@ Globals:
8
8
Timeout : 5
9
9
10
10
Resources :
11
+ # Rust function using runtime_fn running on AL2023
12
+ RuntimeFnAl2023 :
13
+ Type : AWS::Serverless::Function
14
+ Properties :
15
+ CodeUri : ../build/runtime-fn/
16
+ Runtime : provided.al2023
17
+ Layers :
18
+ - !Ref LogsTrait
19
+ - !Ref ExtensionFn
20
+ - !Ref ExtensionTrait
21
+
11
22
# Rust function using runtime_fn running on AL2
12
23
RuntimeFnAl2 :
13
24
Type : AWS::Serverless::Function
@@ -30,6 +41,17 @@ Resources:
30
41
- !Ref ExtensionFn
31
42
- !Ref ExtensionTrait
32
43
44
+ # Rust function using a Service implementation running on AL2023
45
+ RuntimeTraitAl2023 :
46
+ Type : AWS::Serverless::Function
47
+ Properties :
48
+ CodeUri : ../build/runtime-trait/
49
+ Runtime : provided.al2023
50
+ Layers :
51
+ - !Ref LogsTrait
52
+ - !Ref ExtensionFn
53
+ - !Ref ExtensionTrait
54
+
33
55
# Rust function using a Service implementation running on AL2
34
56
RuntimeTraitAl2 :
35
57
Type : AWS::Serverless::Function
@@ -52,6 +74,38 @@ Resources:
52
74
- !Ref ExtensionFn
53
75
- !Ref ExtensionTrait
54
76
77
+ # Rust function using lambda_http::service_fn running on AL2023
78
+ HttpFnAl2023 :
79
+ Type : AWS::Serverless::Function
80
+ Properties :
81
+ CodeUri : ../build/http-fn/
82
+ Runtime : provided.al2023
83
+ Events :
84
+ ApiGet :
85
+ Type : Api
86
+ Properties :
87
+ Method : GET
88
+ Path : /al2/get
89
+ ApiPost :
90
+ Type : Api
91
+ Properties :
92
+ Method : POST
93
+ Path : /al2/post
94
+ ApiV2Get :
95
+ Type : HttpApi
96
+ Properties :
97
+ Method : GET
98
+ Path : /al2/get
99
+ ApiV2Post :
100
+ Type : HttpApi
101
+ Properties :
102
+ Method : POST
103
+ Path : /al2/post
104
+ Layers :
105
+ - !Ref LogsTrait
106
+ - !Ref ExtensionFn
107
+ - !Ref ExtensionTrait
108
+
55
109
# Rust function using lambda_http::service_fn running on AL2
56
110
HttpFnAl2 :
57
111
Type : AWS::Serverless::Function
@@ -84,6 +138,38 @@ Resources:
84
138
- !Ref ExtensionFn
85
139
- !Ref ExtensionTrait
86
140
141
+ # Rust function using lambda_http with Service running on AL2023
142
+ HttpTraitAl2023 :
143
+ Type : AWS::Serverless::Function
144
+ Properties :
145
+ CodeUri : ../build/http-trait/
146
+ Runtime : provided.al2023
147
+ Events :
148
+ ApiGet :
149
+ Type : Api
150
+ Properties :
151
+ Method : GET
152
+ Path : /al2-trait/get
153
+ ApiPost :
154
+ Type : Api
155
+ Properties :
156
+ Method : POST
157
+ Path : /al2-trait/post
158
+ ApiV2Get :
159
+ Type : HttpApi
160
+ Properties :
161
+ Method : GET
162
+ Path : /al2-trait/get
163
+ ApiV2Post :
164
+ Type : HttpApi
165
+ Properties :
166
+ Method : POST
167
+ Path : /al2-trait/post
168
+ Layers :
169
+ - !Ref LogsTrait
170
+ - !Ref ExtensionFn
171
+ - !Ref ExtensionTrait
172
+
87
173
# Rust function using lambda_http with Service running on AL2
88
174
HttpTraitAl2 :
89
175
Type : AWS::Serverless::Function
0 commit comments