Deploy AWS Lambda functions on AWS Graviton processors
Introduction
Deploy Node.js Lambda functions on Graviton processors with Terraform
Deploy Python Lambda functions on Graviton processors with Terraform
Next Steps
Deploy AWS Lambda functions on AWS Graviton processors
Who is this for?
This is an introductory topic for software developers who want to learn how to deploy Lambda functions on AWS Graviton processors.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Deploy Lambda functions on Graviton processors using Terraform.
Prerequisites
Before starting, you will need the following:
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll deploy AWS Lambda functions on Graviton with Terraform. First, you’ll define Lambda resources and provide Node.js and Python function code. Then, you’ll apply the Terraform configuration to provision functions, and review the small code and configuration changes needed to move between Node.js and Python.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Use the
arm64 architecture in your Terraform configuration to target Graviton processors.Open AWS Lambda in the AWS console, select Functions, and open your function. In Runtime settings, verify that the Architecture field is listed as
arm64.Save the Python function as
python_lambda.py. The handler reads event["first_name"] and event["last_name"] to build the returned message.Open the function’s Test tab, enter
{"first_name": "Arm-", "last_name": "user"} in the Event JSON field, and select Test. You should see the same output as when you run the function with Terraform.Terraform creates a Lambda function configured to run on arm64. When invoked with the expected inputs, the example returns a greeting message.