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
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now lets create ec2 instance from this template
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview

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
    Preview
  • We need to create an Amazon Machine Image from this ec2 instance.
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now lets create an ec2 instance using php info AMI
    Preview
    Preview
    Preview
    Preview

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner