Setting up a Git Repository

  1. Create a repository on GitHub under your user named "training"

  2. Change directory (cd) into the 05-atlas directory

  3. Run

     $ git init
    
  4. Run

     $ git commit -m "Initial commit"`
    
  5. Run

     $ git remote config origin https://github.com/<username>/training
    
  6. Run

     $ git push origin master
    

Setting up Packer in Atlas

  1. Navigate to Atlas
  2. Click on "Builds" in the navigation bar
  3. Click on "New Build Configuration"
  4. Create a configuration named "web" and check the "Automatically build on version uploads" option
  5. Go to the "Variables" page and add the following
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  1. Go to the "Integrations" page and select your GitHub repo:
  • GitHub repo: <username>/training
  • GitHub directory: packer
  • Packer template: web.json

  1. Click on "Builds" in the navigation bar
  2. Click on "New Build Configuration"
  3. Create a configuration named "haproxy" and check the "Automatically build on version uploads" option
  4. Go to the "Variables" page and add the following
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  1. Go to the "Integrations" page and select your GitHub repo:
  • GitHub repo: <username>/training
  • GitHub directory: packer
  • Packer template: haproxy.json

  1. Change directory (cd) into the 05-atlas directory

  2. Run

     $ git commit -m "Trigger initial builds" --allow-empty
    
  3. Look in Atlas UI and see builds running