Final answer:
To change the runtime in AWS Lambda, go to the Lambda function in the AWS console, click on the Configuration tab, select Edit under General configuration, choose the new runtime from the Runtime drop-down menu, and then click Save.
Step-by-step explanation:
To change the runtime environment in AWS Lambda, follow these steps:
- Navigate to the AWS Lambda console and choose the function you want to update.
- Click on the Configuration tab.
- Under the General configuration section, click on Edit.
- In the Runtime drop-down menu, select the new runtime version that you wish to use.
- Click on Save to apply the changes.
Note that after changing the runtime, you may need to update your function's code and dependencies if they are not compatible with the new runtime version.