AWS Classroomnotes 08/Jul/2023

AWS EC2 instance lifecycle status and impact on billing

AWS EC2 instance

  • Lets create an ec2 instance with ubuntu 22.04
  • While creating the ec2 ensure the security group has 80 port opened and you select any key pair
  • Login into ec2 instance and then install nginx
sudo apt update 
sudo apt install nginx -y
  • Navigate http://<public-ip> from browser
    Preview
  • Doing the same steps by using user data.
  • User data in AWS can run a script once when you are creating a new ec2 instance
    Preview
    Preview
    Preview
  • when userdata is not working refer to /var/log/cloud-init*.log
  • Rebooting the AWS instances will not change the public ip, stop and start will change the public ip.

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube