AWS Classroomnotes 22/Sep/2022

AWS EC2 Contd…

AWS Launch Template

  • This is used to create a template with static and dynamic settings.
  • Create a Launch Template








  • Now lets create ec2 instance from this template








Activity:

  • Create a launch template for your application
  • Create an ec2 instance with ubuntu and install lamp stack with php info
sudo apt update
sudo apt install apache2 php libapache2-mod-php php-mysql stress -y
echo "<?php phpinfo(); ?>" > info.php
sudo cp info.php /var/www/html/info.php
  • Open 80 and 22 port in the security group.
  • Navigate to http://publicip/info.php
  • We need to create an Amazon Machine Image from this ec2 instance.




  • Now lets create an ec2 instance using php info AMI



Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel 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 Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%