How to reduce intance based on load

Hi i have 3 instance i want to decrease load based on load using lambda function and API gateway