Template for launching more of such machines

Launch Templates > Create launch template

image.png

image.png

image.png

Security Group

image.png

image.png

User Data

image.png

Update Launch Template

How to check whether my user data passing to EC2 instance is working

actions > modify_template

ASG > asg-app-prod

Details > Launch Template > Edit > Latest(2)

Update