Skip to content

Commit da7f95f

Browse files
authored
Merge branch 'main' into feature/packaging-plugin
2 parents ae44214 + 20978cc commit da7f95f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Examples/Deployment/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ cd swift-aws-lambda-runtime/Examples/Deployment
1313

1414
Note: The example scripts assume you have [jq](https://stedolan.github.io/jq/download/) command line tool installed.
1515

16+
## Mac M1 Considerations
17+
18+
Lambdas will run on an x86 processor by default. Building a Lambda with an M1 will create an arm-based executable which will not run on an x86 processor. Here are a few options for building Swift Lambdas on an M1:
19+
20+
1. Configure the Lambda to run on the [Graviton2](https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/) Arm-based processor.
21+
2. Build with the x86 architecture by specifying `--platform linux/amd64` in all Docker 'build' and 'run' commands in `build-and-package.sh`.
22+
1623
## Deployment instructions using AWS CLI
1724

1825
Steps to deploy this sample to AWS Lambda using the AWS CLI:

0 commit comments

Comments
 (0)