Table of Contents generated with DocToc
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
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.
- Packer
- python 3.7 or above (the script uses fstrings)
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
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.