File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 0.3.0] - 2024-10-25
4+ ### Added
5+ - Added ` Architecture ` parameter.
6+
37## [ 0.2.2] - 2024-09-30
48### Changed
59- Use HTTP/3 and HTTP/3 for CloudFront distributions.
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ Parameters:
1212 Description : >-
1313 The URI of the Docker image to use for the function.
1414 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+
1526 MemorySize :
1627 Type : Number
1728 Description : >-
@@ -88,6 +99,7 @@ Metadata:
8899 Parameters :
89100 - FunctionName
90101 - ImageUri
102+ - Architecture
91103 - MemorySize
92104 - Timeout
93105 - Label :
@@ -111,6 +123,8 @@ Metadata:
111123 default : Function name
112124 ImageUri :
113125 default : Docker image
126+ Architecture :
127+ default : CPU architecture
114128 MemorySize :
115129 default : Memory size
116130 Timeout :
@@ -164,6 +178,11 @@ Conditions:
164178 - ' Yes'
165179
166180Mappings :
181+ ArchMap :
182+ ARM64 :
183+ Architecture : arm64
184+ AMD64 :
185+ Architecture : x86_64
167186 OriginShieldRegionMap :
168187 # Regions with origin shield
169188 us-east-2 :
@@ -212,7 +231,11 @@ Resources:
212231 ImgproxyFunction :
213232 Type : AWS::Serverless::Function
214233 Properties :
215- Architectures : [arm64]
234+ Architectures :
235+ - !FindInMap
236+ - ArchMap
237+ - !Ref ' Architecture'
238+ - Architecture
216239 FunctionName : !If
217240 - HaveFunctionName
218241 - !Ref ' FunctionName'
You can’t perform that action at this time.
0 commit comments