Cloning AWS lambda function
Cloning AWS lambda function to other region or same region:
Many times you had the use case where you have AWS lambda function and want to create same lambda function again and do some minor modifications using AWS console itself. So this is the case when you already have lambda function and you want to clone (create duplicate copy) of your lambda function either in same region or different region.
Here are the steps, which you have to follow to fullfil this usecase:
- Login to AWS console and go to you lambda funciton and export your lambda function. Here you will have to export both the files (".yaml/SAM" and "function code base/deployment package").
- Create S3 bucket (in same region where you want to create new lambda function) and upload the dployment package file and copy the s3 uploaded object path.
- Open downladed .yaml file and update the code uri with copied S3 object path.
- Go to Cloud Formation service on AWS console and create new template and upload the .yaml file and it will create the lambda function.
That's all what you have to do to as copy and paste of your existing lambda funciton.
Categories/Tags: Cloning AWS lambda function~Copy AWS lambda function~Duplicate Copy of AWS lambda function