Skip to content

baitian-spring2021/ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Amazon Machine Image (AMI) with Packer

Included in the Provisioners

  • JDK 11
  • Tomcat 9

Configuration

Pre-requisites

  • Packer
  • Git
  • Active AWS account
  1. Clone this repo
$ git clone {repo link}
  1. Validate the Packer AMI template.
$ packer validate ami.json
  1. Build the AMI by giving the required information in command line. Make alterations on the variables as you need.
$ packer build \
    -var 'aws_access_key={your access key}' \
    -var 'aws_secret_key={your secret key}' \
    -var 'subnet_id={your subnet id}' \
    -var 'prod_account_id={your prod aws id}' \
    ami.json

or Build the AMI by filling in the vars.json file.

$ packer build -var-file=./vars.json ami.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages