Short description
To stop and start EC2 instances at regular intervals using Lambda, do the following:
Create a custom AWS Identity and Access Management (IAM) policy and execution role for your Lambda function.
Create Lambda functions that stop and start your EC2 instances.
Test your Lambda functions.
Create EventBridge rules that trigger your function on a schedule.