File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 0.3.0] - 2024-10-25
4
+ ### Added
5
+ - Added ` Architecture ` parameter.
6
+
3
7
## [ 0.2.2] - 2024-09-30
4
8
### Changed
5
9
- Use HTTP/3 and HTTP/3 for CloudFront distributions.
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ Parameters:
12
12
Description : >-
13
13
The URI of the Docker image to use for the function.
14
14
The image must be in an Amazon Elastic Container Registry (Amazon ECR) repository.
15
+ Architecture :
16
+ Type : String
17
+ Description : >-
18
+ !!!WARNING!!!: ML features do not work on ARM64 architecture due to Lambda environment
19
+ limitations. If you need ML features, either use AMD64 architecture or consider deploying
20
+ imgproxy on ECS or EKS.
21
+ Default : ARM64
22
+ AllowedValues :
23
+ - ARM64
24
+ - AMD64
25
+
15
26
MemorySize :
16
27
Type : Number
17
28
Description : >-
@@ -88,6 +99,7 @@ Metadata:
88
99
Parameters :
89
100
- FunctionName
90
101
- ImageUri
102
+ - Architecture
91
103
- MemorySize
92
104
- Timeout
93
105
- Label :
@@ -111,6 +123,8 @@ Metadata:
111
123
default : Function name
112
124
ImageUri :
113
125
default : Docker image
126
+ Architecture :
127
+ default : CPU architecture
114
128
MemorySize :
115
129
default : Memory size
116
130
Timeout :
@@ -164,6 +178,11 @@ Conditions:
164
178
- ' Yes'
165
179
166
180
Mappings :
181
+ ArchMap :
182
+ ARM64 :
183
+ Architecture : arm64
184
+ AMD64 :
185
+ Architecture : x86_64
167
186
OriginShieldRegionMap :
168
187
# Regions with origin shield
169
188
us-east-2 :
@@ -212,7 +231,11 @@ Resources:
212
231
ImgproxyFunction :
213
232
Type : AWS::Serverless::Function
214
233
Properties :
215
- Architectures : [arm64]
234
+ Architectures :
235
+ - !FindInMap
236
+ - ArchMap
237
+ - !Ref ' Architecture'
238
+ - Architecture
216
239
FunctionName : !If
217
240
- HaveFunctionName
218
241
- !Ref ' FunctionName'
You can’t perform that action at this time.
0 commit comments