an environment management tool intended for use in multi-instance AWS application deployments.
Dew is an environment management tool intended for use in multi-instance AWS application deployments.
It’s called dew as it’s a layer under Fog which in turn is a layer under various cloud platforms.
It includes:
dew
, with subcommands eg. environments
, amis
These subcommands can:
This code is Open Source, but some of it is still specific to PlayUp. Running cucumber
with a correctly configured development.yaml
will drain whichever credit card you’ve attached to that account!
$ [sudo] gem install dew
$ git clone [email protected]:playup/dew-config.git ~/.dew
$ cp -r `gem which dew | dirname`/../../example/dew ~/.dew
$ vi ~/.dew/accounts/development.yaml
Replace the user_id
, access_key_id
and secret_access_key
with your AWS credentials.
Either pick an existing keypair or create a new one. You’ll need to do this once for each account and region you intend to operate in.
Place the .pem
file in the following location:
~/.dew/accounts/keys/$ACCOUNT/$REGION/$KEYPAIRNAME.pem
For example, the .pem
file for the default
key in development
account and in the ap-southeast-1
region would go in:
~/.dew/accounts/keys/development/ap-southeast-1/default.pem
Don’t worry about setting permissions for the key - dew will manage that itself.
dew makes a couple of assumptions about how you’ve set up your security groups. Unfortunately, dew doesn’t yet possess the capability to manage this for you:
default
security group allows for SSH from the host you’re creating the environment fromdefault
security group in your RDS configuration allows connections from your AWS account’s instances$ dew --help
And perform a basic self-test:
$ dew env
Assuming that you’ve created (or downloaded) your ~/.dew
directory, you should be ready to create a simple environment.
First, take a look at ~/.dew/profiles/test-light.yaml
. test-light
is the profile we’ll be using to create our environment. You’ll see that it contains:
If your keypair isn’t called ‘default’, you’ll need to edit this file and change it.
Now, run:
dew -v env create test-light my-first-environment
You’ll be shown a summary of the environment that you’re about to create. Type ‘y’ to confirm its creation and watch as it’s created.
Once complete you can run the following commands to interact with your environment:
dew env ssh my-first-environment
dew env show my-first-environment
dew env destroy my-first-environment
Read HACKING.md