@aws
Configure individual Lambda function properties (e.g. src/http/get-index/config.arc
).
runtime
- Officially supported: one ofnodejs12.x
(default),deno
,python3.7
,python3.6
, orruby.5
, etc.- Also configurable, but not officially supported by Architect:
java8
,go1.x
,dotnetcore2.1
- Also configurable, but not officially supported by Architect:
memory
- number, between128
MB and3008
MB in 64 MB increments- Memory size also directly correlates with CPU speed; higher memory levels are available in more capable Lambda clusters
timeout
- number, in seconds (max900
)concurrency
- number,0
to AWS account maximum (if not present, concurrency is unthrottled)layers
- Up to 5 Lambda layer ARNs; must be in the same region as deployedpolicies
- configure AWS SAM policy templates
Note: any function configurations made globally in your project manifest will be overridden by individual functions. For example, if your
app.arc
includesmemory 128
, andsrc/http/get-index/config.arc
includesmemory 3008
, all functions exceptget /
will be configured with 128MB of memory, whileget /
will override that global with 3008MB.
Example
@aws
runtime python3.7
memory 256
timeout 3
concurrency 1
layers {ARN}
policies {ARN}
To use multiple layers or policies:
@aws
runtime python3.7
memory 256
timeout 3
concurrency 1
layers
{ARN1}
{ARN2}
{ARN3}
policies
{ARN4}
{ARN5}
{ARN6}
Read more about the Lambda limits and resource model.