How to Duplicate an AWS Lambda Function
Last Updated :
23 Jul, 2025
AWS Lambda is a serverless computing technology made by Amazon Web Services, that allows one to run a piece of code without any need of maintaining a server. This makes it an ideal choice for various applications, from simple task automation to complex backend services. However, there may be a need to duplicate a lambda function, for any reason, be it testing or version control, etc. In this article, we will see how to duplicate a lambda function.
Though there is no specific one-button click process to duplicate a lambda function, it can be achieved by following these steps.
How to Duplicate an AWS Lambda Function: Step-By-Step Process
Step 1: Login into your AWS Console
Step 2: Go to the Lambda Dashboard
Type "Lambda" inside the search box located inside the top left corner.

Step 3: Select the function to duplicate After heading into the AWS Lambda web page, you will see a list of Lambda Functions which you have created. Select the one that you want to duplicate. I want to duplicate my TestLambda function from my list of Lambda Functions. So i will left-click on the function and head inside it.

Step 4: Note down the function's configurations. When you are inside your Lambda Function, scroll down and note down the runtime configuration.

Here, my runtime configuration is 'Python 3.12' and Architecture is x86_64. Then head into Configurations tab and note the other details such as timeouts, memory triggers, permissions etc.

My lambda function does not require any specific permissions and triggers as its only for demonstration, but if your lambda function has any specific permissions and triggers or any other thing, please note it down, as you may want to add it to the duplicate function as well.
Step 5: Download the Code
After noting down all the important configurations, download the function code.
Scroll up and you will see a download option in the top-right corner of the Function Overview Box.
Click on the Download button and select Download function code .zip file.

After successfully downloading the function code, we are ready to duplicate this function.
Step 6: Create a new Lambda Function
Go to the Lambda home page and select the Create Function Button.

Step 7: Select Runtime and Architecture
Once inside the create function page, give your duplicate function any name. Give it the same runtime and architecture which you noted down earlier.
For me it was Python 3.12 and x86_64 architecture.
Select the Create Function button.

Step 8: Configure the new function
- Go into the configuration tab of the new function
- Update the configuration settings of the new function to match the old function
- Update its Timeout settings, permissions, triggers, etc.
Step 9: Upload the .zip file
After successfully completing the above steps, upload the .zip file downloaded previously into the new Lambda function's code.
Inside the code tab of the lambda function, Select the Upload button from the top right corner and then select .zip file
Upload the downloaded file into your new lambda function

Step 10: Test your new function.
Test your duplicate lambda function if its working as expected or not. If not, check the configuration settings again and correct if any mistake is present.
Conclusion
There is no specific one click button to duplicate a lambda function but it can be duplicated if one follows the some series of steps properly. Duplicating a lambda function may provide several benefits such as Testing new features, Backup and Recovery, Simplified Management, etc.
Similar Reads
DevOps Tutorial DevOps is a combination of two words: "Development" and "Operations." Itâs a modern approach where software developers and software operations teams work together throughout the entire software life cycle, from planning and coding to testing, deploying, and monitoring.The main idea of DevOps is to i
9 min read
Introduction
What is DevOps ?DevOps is a modern way of working in software development in which the development team (who writes the code and builds the software) and the operations team (which sets up, runs, and manages the software) work together as a single team.Before DevOps, the development and operations teams worked sepa
10 min read
DevOps LifecycleThe DevOps lifecycle is a structured approach that integrates development (Dev) and operations (Ops) teams to streamline software delivery. It focuses on collaboration, automation, and continuous feedback across key phases planning, coding, building, testing, releasing, deploying, operating, and mon
10 min read
The Evolution of DevOps - 3 Major Trends for FutureDevOps is a software engineering culture and practice that aims to unify software development and operations. It is an approach to software development that emphasizes collaboration, communication, and integration between software developers and IT operations. DevOps has come a long way since its in
7 min read
Version Control
Continuous Integration (CI) & Continuous Deployment (CD)
Containerization
Orchestration
Infrastructure as Code (IaC)
Monitoring and Logging
Microsoft Teams vs Slack Both Microsoft Teams and Slack are the communication channels used by organizations to communicate with their employees. Microsoft Teams was developed in 2017 whereas Slack was created in 2013. Microsoft Teams is mainly used in large organizations and is integrated with Office 365 enhancing the feat
4 min read
Security in DevOps