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




