V-Abhishek / amazon-machine-image

This repository details the process of creating Amazon Machine Image (AMI) using Packers and deploy it to AWS account and automate the entire process using CircleCI pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amazon Machine Image (AMI)

PROJECT DESCRIPTION

This repository contains configuration for building Custom AMI required for deploying and running Online Bookstore web application. The AMI is built and made available on the AWS accounts by using CircleCI pipeline. The CircleCI pipeline leverages Packer to validate and build AMI.


ARCHITECTURE

Architecture


AMI CUSTOMIZATION

  1. Install Java 8 and Maven using java.sh shell script
  2. Install Tomcat Server using tomcat.sh shell script
  3. Install AWS Cloud Watch using cloud-watch.sh shell script
  4. Install AWS Code Deploy Agent and start it using deploy-agent.sh shell script

VALIDATE and BUILD AMI

Validate AMI

sh packer validate ami.json

Build AMI

sh packer build
-var 'aws_access_key=REDACTED'
-var 'aws_secret_key=REDACTED'
-var 'aws_region=us-east-1'
-var 'subnet_id=REDACTED'
ami.json 

About

This repository details the process of creating Amazon Machine Image (AMI) using Packers and deploy it to AWS account and automate the entire process using CircleCI pipeline


Languages

Language:Shell 100.0%