1 Answer
- Newest
- Most votes
- Most comments
0
You can export the deployment package of a Lambda function. This Premium Support article talks about how to migrate a Lambda function to another account or region; the initial part of the process involves exporting the function deployment packet which is what you want to do.
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 4 years ago

Thanks for your help. When I export the deployment package I got the content of the zip package I've just downloaded, not the previous one.
You may be able to do that using the AWS CLI. If you specify the function ARN you can add a version number to the end like:
arn:aws:lambda:us-west-2:123456789012:function:my-function:4