GithubHelp home page GithubHelp logo

vkantchev / aws-ec2-ami-packer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swiftsoftwaregroup/aws-ec2-ami-packer

0.0 0.0 0.0 9 KB

Build AWS Amazon Machine Image (AMI) with Packer

License: Apache License 2.0

Shell 70.05% HCL 29.95%

aws-ec2-ami-packer's Introduction

aws-ec2-ami-packer

Build AWS Amazon Machine Image (AMI) with Packer

Setup for macOS

Make sure you do this setup first:

  1. Setup macOS for AWS Cloud DevOps

  2. AWS Authentication

  3. Install Packer via Homebrew:

    # install
    brew tap hashicorp/tap
    brew install hashicorp/tap/packer
    
    # verify
    packer -help

Development

Configure the project:

source configure.sh

Format configuration:

packer fmt .

Validate configuration:

packer validate .

Build

packer build .

Test

This script will launch an instance from the AMI and run tests on it:

./test.sh

Cleanup

Deregister the AMI image and delete ALL image snapshots.

./cleanup.sh

How to create a new project

# create main.pkr.hcl
cat << 'EOF' > main.pkr.hcl
packer {
  required_plugins {
    amazon = {
      version = ">= 1.2.8"
      source  = "github.com/hashicorp/amazon"
    }
  }
}
EOF

# initialize the project
packer init .

aws-ec2-ami-packer's People

Contributors

vkantchev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.