AMI
AMI contains
- OS (ubuntu, redhat, amazonlinux, mac, windows…etc)
- pre-install software (java, nginx/apache …etc)
- configurations files (htmls, configurations files, jar files)
AMI can created by region (uniq id) ==> copy another region (uniq id)
- uniq id
- copy ami from one region another region also but copy to another region (uniq id)
Steps:
- Lanch ec2 instance with base os (create ec2 instance)
- install necessary softwares
- Remove sensitive data (jfrog/nexus artifacts)
- configure the files for you application
- copy files like html, jarfiles or dependancy files
- create AMI
- share you ami to other regions if required.
Install zay website
Zay template link refer
Download Zay html files : referlink
pre-requests softwares:
sudo apt-get update && \
sudo apt-get install nginx unzip -y && \
cd /tmp/ && \
wget https://templatemo.com/tm-zip-files-2020/templatemo_559_zay_shop.zip && \
unzip templatemo_559_zay_shop.zip && \
cd templatemo_559_zay_shop && \
sudo cp -rf . /var/www/html/ && \
sudo apt install stress -y
To access website http:// <ipaddress>

AMI TOOLs
- packer
- ec2 image builder
- pipeline
- instance
- install softwares (user_data) (aws ssm agent)
- pipeline
