Skip to content

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

Notifications You must be signed in to change notification settings

V-Abhishek/amazon-machine-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Languages