1 Answer
- Newest
- Most votes
- Most comments
0
The first option - use EC2 User Data script to install all required software on the start https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
The second option - create AMI from the current instance and use this AMI later in your Autoscaling group for new instances. New instances will have all software https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/tkv-create-ami-from-instance.html
The third option - use SSM document to apply changes to your instances (install everything) https://docs.aws.amazon.com/systems-manager/latest/userguide/documents.html

Thank you. I already tried to do this using user data but did not understand what was wrong with my script. I didn’t see the log file when I read the manual and didn’t understand what was wrong. Turns out I had a couple of errors in the script and was using commands using sudo. I figured it out with my script and it helped