Step-by-Step Guide: Creating a Template with an Instance
Lalita Kashyap
1 min read
How to create template using instance
- Click on instance "check box" and then click on "Actions".
- Give template name and version
- Add user data at end(if you want instance create with installed Software)
#!/bin/bash
sudo apt-get update -y
sudo apt-get install nginx -y
sudo echo "hello" > /var/www/html/index.html
sudo systemctl restart nginx
- Click on "Create launch template"
- Click on EC2
- Click on "Launch Templates"
- Select the Template and Click on "Launch instance from Template" in "Actions"
- Click on "Launch instance"
- Click on "instances"
- Terminate the previous created instance
- Now your instance is deleted
- Copy the public ip of instance
- Open browser and paste it
I hope this guide has made the process of creating a template with an instance clear and straightforward. By following above steps, you can now efficiently replicate and manage your instances with ease. Don't forget to share your experiences and any tips you've discovered along the way! Thank you for reading, and happy templating!
Thank you🙏
Keep Learning..
0
Subscribe to my newsletter
Read articles from Lalita Kashyap directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by