Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryandotsmith/amzn-base
AMI Builder for AWS Platform
https://github.com/ryandotsmith/amzn-base
Last synced: 3 months ago
JSON representation
AMI Builder for AWS Platform
- Host: GitHub
- URL: https://github.com/ryandotsmith/amzn-base
- Owner: ryandotsmith
- License: mit
- Created: 2013-09-09T22:35:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T22:35:33.000Z (over 9 years ago)
- Last Synced: 2024-04-15T03:17:04.810Z (9 months ago)
- Language: Shell
- Homepage: http://r.32k.io/app-platforms-on-aws
- Size: 540 KB
- Stars: 9
- Watchers: 5
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AMZN-base is an implementation of the architecture defined in the [Application Platform on AWS](http://r.32k.io/app-platforms-on-aws) article. AMZN-base assumes the AMI is controlled with [amzn-ship](https://github.com/ryandotsmith/amzn-ship).
## Dependencies
* Packer - http://www.packer.io/
## Using Packer to Create the AMI
The AMI is responsible for installing a framework with its dependencies and some helper programs for deployment. See the `bin` directory for the list of programs copied into the AMI.```bash
$ build-ami frameworks/node ami-7cb04b14
...
us-east-1: ami-1d3e7074
$ export AMZN_AMI=ami-1d3e7074
```## Building the AMI
The build process is simple. We take the filesystem in `./target-machine` and copy it onto the root filesystem of the host. Once the filesystem is in place, the setup script will use apt-get to install a base set of software (e.g. build-essential).The `build-ami` command takes two arguments. The first is the location of a bash file that describes the framework. This file contains a set of commands that will setup the AMI for the application it is to run. For example, the `framework/node` file will setup the AMI for a nodejs app.
The second argument specifies which AMI to use as the basis for the image. Canonical publishes a list of "Ubuntu Cloud Image" AMIs at https://cloud-images.ubuntu.com/