title: How to copy or duplicate an AWS Lambda function
body: <p>I have an AWS Lambda function that is triggered from an API Gateway API. I want to duplicate this Lambda function including the triggers. How can I do this? I tried using &quot;create version&quot; but the API Gateway trigger is not duplicating and I am not able to change the code.</p>