Setting Up Euca2ools on a Mac
Note: If you are using Lion, you will need to install Distribute and the latest Mac OS Developer Tools before you can use easy_install. For more information, see http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/.
-
Clone the euca2ools from git:
git clone https://github.com/eucalyptus/euca2ools.git
-
Change to the directory where euca2ools was installed and install boto:
sudo easy_install boto
-
Run the euca2ools installer:
sudo python setup.py install
-
Install m2crypto:
sudo easy_install m2crypto
-
Go to your euca admin gui and get your access key ID and secret key. For example:
https://192.168.51.185:8443/#key
-
Unzip the the downloaded zip file with the credentials in it and open the eucarc file.
-
Edit the value for the EUCA_KEY_DIR property to the path where your credentials are stored (e.g., /Applications/euca2ools/creds).
-
Enter your access key as the value for EC2_ACCESS_KEY.
-
Enter your secret key as the value for EC2_SECRET_KEY.
-
Edit the value for the AWS_CREDENTIAL_FILE property to ${EUCA_KEY_DIR}/iamrc
-
Source the eucarc file.