Skip to content

Commit c99f1a6

Browse files
Small improvement for lambda cross architecture support (#383)
1 parent decded3 commit c99f1a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/content/docs/aws/capabilities/config/arm64-support.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ docker inspect localstack/localstack | jq '.[0].Architecture'
3131
Since LocalStack 2.0, Lambda functions execute in Docker containers with the target platform `linux/amd64` or `linux/arm64`
3232
depending on the [instruction set architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) configured for the function (`x86_64` by default or `arm64`).
3333
This behavior can lead to errors if the host system, the Docker image, or the code/layer of the function do not support the target architecture.
34-
If you prefer to execute Lambda functions natively, you can set the [Lambda configuration](https://docs.localstack.cloud/aws/capabilities/config/configuration/#lambda) variable to `LAMBDA_IGNORE_ARCHITECTURE=1`.
34+
35+
If you prefer to execute Lambda functions on your native platform architecture, you can set the [Lambda configuration](https://docs.localstack.cloud/aws/capabilities/config/configuration/#lambda) variable to `LAMBDA_IGNORE_ARCHITECTURE=1`.
36+
Example scenario: I have an amd64 machine and want to run a an arm64 Lambda function. I know that the Lambda function runs on both architectures (i.e., no architecture specific code or dependencies).
3537

3638
Host systems with [multi-architecture support](https://docs.docker.com/build/building/multi-platform/) can run containers for different Linux architectures using emulation.
3739
For example, an Apple Silicon MacBook can execute `linux/arm64` (`arm64`) Lambda functions natively or emulate them for `linux/arm64` (`x86_64`).

src/content/docs/aws/tutorials/lambda-ecr-container-images.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Run the following command to create the function:
189189
:::note
190190
Before creating the lambda function, please double check under which architecture you have built your image.
191191
If your image is built as arm64, you need to specify the lambda architecture when deploying or set `LAMBDA_IGNORE_ARCHITECTURE=1` when starting LocalStack.
192-
More information can be found [in our documentation regarding ARM support.]()
192+
More information can be found [in our documentation regarding ARM support.](/aws/capabilities/config/arm64-support)
193193
:::
194194

195195
```bash

0 commit comments

Comments
 (0)