-
Notifications
You must be signed in to change notification settings - Fork 39
Setting up AWS
The EC2 setup code is based on RLLAB, and the instructions for setting up your AWS account are located here: https://rllab.readthedocs.io/en/latest/user/cluster.html
To begin with setting up AWS, first set the $DOODAD_S3_BUCKET
environment variable, then run:
python scripts/setup_ec2.py
The script will automatically create a bucket and initialize credentials required for launching jobs.
Next, install AWS CLI with:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
After these commands, check if awscli is available by typing aws
into the command line.
In order to use doodad, the AMI image should be an Ubuntu image with awscli and docker installed. A list of pre-built images can be found here.
You can create an image by creating an EC2 instance, installing docker and awscli, and creating a "snapshot". Detailed instructions are here.
Once the image is created, it is only valid for the region you created it in. In order to copy images to other regions, instructions can be found here