This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# Kujenga

Kujenga is a lightweight way to build EC2 images using Python, boto and fabric.

Kujenga uses simple JSON based scripts as recipies to build images
in Amazon EC2. It does this by spinning up a base instance, uploading
any local files, and then executing a set of commands to configure the
instance. Finally it snapshots the image.

During the process it generates temporary keys and temporary security
groups that are used to connect to the running image using Fabric.
After the image has been created, the instance is terminated and
the temporary keys and security groups are deleted.

Kujenga is different from other EC2 script based solutions in that it attempts
to deal with the unpredictable delays and eventual consistancy issues of
EC2 rather than leaving that as an exercise for the user. It is meant to
be used in an automated stack.

## Prerequisites
Kujenga requires
- Boto
- Fabric

Because of the boto dependency, Kujenga does not work with Python 3.
Using Amazon EC2 requires having an account there and setting the
following environment variables

export AWS_ACCESS_KEY_ID=<your aws="" access="" key="">
export AWS_SECRET_ACCESS_KEY=<your aws="" secret="" access="" key="">

## Installation

## Details

An example of a minimal Kujenga recipe is the following:

"name": "dbm-desktop",
"description": "Desktop image in cloud for use with remote desktop",
"region" "us-west-2",
"user": "ubuntu",
"instance_type": "m3.medium",
"base_image": {
"doc-string": "These are the U14.04 amd64 ebs images as of 3-Aug-2014",
"us-west-2": "ami-9986fea9",
"us-west-1": "ami-79b4b73c",
"us-east-1": "ami-a427efcc",
"sa-east-1": "ami-fb8b22e6"
"uploads": {
"doc-string": "Everthing in the source dir will be uploaded to target_directory",
"source": "/home/ubuntu/source",
"target": "/home/ubuntu/target"
"commands": [ "apt-get update",
"apt-get upgrade -y",
"apt-get install emacs -y",
"python /home/ubuntu/target/"]

The **name** and **description** values will be used to annotate the image
in EC2. Kujenga will use the EC2 region specified by the **region**
value to create the image. The **user** value is used to ssh into the
running instance in order to configure it. It must be part of the
sudo'ers group.

The **instance_type** value will be used as the machine
type for the instance. Note that it must be compatible with the ami
that is specified in the **base_image** dictionary. The **uploads**
dictionary gives directions on files to upload. Everything in the source
directory (full path) will be uploaded to the target directory (full path).
These files can then be referred to in the commands section for installation
of custom software etc.

Every entry in the **commands** section will be executed verbatim by
the sudo command.

Finally, Kujenga snapshots the instance to make a new ami and cleans up
by shutting down the instance and deletes temporary keys and security groups
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
kujenga-0.1.0.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Aug 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting