Skip to content

Simple PoC for Packer for building an EBS-based AMI within AWS

Notifications You must be signed in to change notification settings

devopstf/packer-aws-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Building a customized AMI through Hashicorp Packer

The repo contains the basic components you need for building and provisioning a customized AMI using Packer tool from Hashicorp: we are using an amazon-ebs builder, and a simple shell provisioner responsible for issuing the Ansible playbook that is going to do all the stuff.

Usage

Follow the instructions from Hashicorp for installing Packer

Define your access and secret keys for accessing your AWS account:

ubuntu@devops-box$ export AWS_ACCESS_KEY_ID=<your-access-key>
ubuntu@devops-box$ export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>

Invoke packer for building your image:

ubuntu@devops-box$ packer build ami-melapela.json

About

Simple PoC for Packer for building an EBS-based AMI within AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages