AWS Compute – Scenario
- Architecture to be acheived
- Lets start by creating amis
- Create an ec2 for admin image with size t2.micro
- install apache server
sudo apt update && sudo apt install apache2 -y
- navigate to /var/www/html
- clone the code from Refer Here
- rename the folder to admin
- checkout the brach to admin
- Now navigate to http://
/admin/index.html
- Now create the ami
- install apache server
- Create an ec2 for for product image defintion with size t2.micro
- install apache server
sudo apt update && sudo apt install apache2 -y
- navigate to /var/www/html
- clone the code from Refer Here
- rename the folder to product
- Now navigate to http://
/product/index.html
- Now create the ami
- install apache server
- lets create a launch template called as admin with admin ami
- lets create a launch template called as product with product ami