/packer-chef-project

Primary LanguageRubyOtherNOASSERTION

Intro to Packer-Json

Optional: Command line aligned with AWS CLI

Step by Step guide to building AMIs:

  1. Install packer
  1. Need the app repo and Berkshelf
  • Berkshelf is a dependency manager for Chef cookbooks. Basically like your metadata file.
  1. Need working repo for MongoDB and Nodejs locally
  • Ensure the Github repo works and passes all tests and add to Berksfile with this syntax for instance:
cookbook 'node', git: 'git@github.com:j2020v/chef-nginx-cookbook.git'
  1. Created .json packer file
  1. Echo keys in .bash_profile (ACCESS KEY AND SECRET)

  2. Describe variables and what infrastructure it is meant to use

  3. Export variables

  4. Built AMIs externally and carried out provisions after