EC2 image builder
- In EC2 image builder we build a pipeline that
- boots a build instance
- installs your software (via Component)
- run tests (optional)
- Creates a versioned AMI
- repeatable on deman or on schedule
- Concepts
- Component: YAML steps
- image recipe
- infra configuration
- distribution
- pipeline
- Prereqs:
- AWS CLI
- VPC
- S3 bucket
First Example
- Watch classroom recording for guided creation
Azure VM Images
- Azure has two types of images
- Generalized Image:
- Allows to set username and password/key by removing machine specific details such as user name, hostname and security identifiers
- Specialized Image
- Doesnt Allows to set username and password/key
- Generalized Image:
- Azure Images can be created in two ways
- Azure compute Gallery
- Azure Managed Images
- Azure identfies Image using urn
<publisher>:<offer>:<sku>:<version>- publisher
- offer
- sku
- version
Lets create the zayshop image in compute gallery in Azure
- Manual steps
sudo apt update
sudo apt 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 /tmp/templatemo_559_zay_shop
sudo cp -r . /var/www/html
- Now create a new vm in a different resource group and execute the above manual steps
- Lets create a resource group for storing images
- Now lets create an Azure compute Gallery in the resource group (watch classroom recording for guided creation.)
- Navigate to vm and click on capture and provide the gallery information and other required info to create a vm image version.
