I have deployed a python flask application in EC2 instance.
Now i need to create autoscaling groups so that if some parameter is high i need EC2 to spin up automatically with the flask application.
I can create an AMI of the current EC2 instance and associate IAM role to launch template(autoscaling group).Is this the best practice?