I am looking AWS EC2
autoscaling feature that can automatically stop my EC2 instance at night and change my instance type (i.e: t2.xlarge to t2.small) for the whole night and in the morning again stop EC2 instance and change instance type (i.e t2.small to t2.xlarge) on daily basis.
Please note:
I have already checked with IAM role > created role to grant permission for changes. & created Lambda function and insert code for stop and restart the instance with the help of AWS CloudWatch
but I need code which can stop instance and then change type in a specific time for night and morning.