This repository is now deprecated. The Guardian now builds AMIs via AMIgo. This is only kept for reference.
This repo contains build scripts for base AMIs that get an Ubuntu AMI to a point where it is easy to use to deploy an application.
AMI building is done using Packer. The packer config files
are in packer/
and provisioning scripts are kept in packer/resources/
.
All AMIs produced by scripts in this repo should have:
LaunchPermission
for all AWS accounts that Prism is aware ofFor example - the initial base-ubuntu
image has the following tags:
If an image was not built in a CI environment then one or more of the above
fields will be set to DEV
. Never use an AMI marked DEV as they maybe deleted
at any point without checking if anyone is using it..
To build locally:
setup.sh
(which will download packer) or set the PACKER_HOME
environment variable to the location of your packer binaries.AWS_ACCESS_KEY
and AWS_SECRET_KEY
respectivelyAWS_DEFAULT_PROFILE
set if
requiredRun the build.sh
in the root of the repository. When not running in
development mode it will step through the process of image creation.
Each image contains a number of optional features. See the features README for more details.