I'm currently preparing to leverage the features of AWS more, still a few questions arose during my research. I'm currently interested in a combination of AWS autoscaling with multiple auto scale groups (one for each service) as well as deployment with AWS code deploy.
I'm wondering what are common practices to configure the EC2 instance which will get spun up when AWS notices that I need a new EC2 instance. I thought about creating a custom AMI where everything is installed that I need for the application to run. Are there other possibilities? How would something like Ansible play into in this setup? Also, what if I need to change the instances like install a security update, what is a common practice to do so without sshing to each server instance and doing it manually.
Thanks