krishnaghatti / packer_build_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents generated with DocToc

packer-templates

The images to be built and all the related files should be in each of its folder. The build file's name should be baseAmi.json

Purpose

The build_script.py script builds from either the given folder or builds all of the images from the folders. As of now the templates only build AWS specific AMIs. This repository can be used for building various cloud images using Packer.

Requirements

Software

  • Packer
  • python 3.7 or above (the script uses fstrings)

Usage

To build specific AMI: python3 build_script.py build_specific --ami_to_build ubuntu1604

To build all: python3 build_script.py build_all

To get the current available AMIs: python3 build_script.py get_all_ami_ids

License

Inspiration

The folder structure and python script are inspired by the repo : https://github.com/mrlesmithjr/packer-templates and I have modified them to suit my requirement.

Author Information

About


Languages

Language:Python 68.7%Language:Shell 31.3%