June 2020
Intermediate to advanced
410 pages
9h 52m
English
Since pyrax does not have a default location for the credentials file, you will need to create a file and then set an environmental variable by instructing pyrax to do this at the file's location.
Let's start by creating a file in ~/.rackspace_credentials with the following content:
[rackspace_cloud]username = [YOUR_USERNAME_HERE]api_key = [YOUR_API_KEY_HERE]
We can now proceed by setting the RAX_CREDS_FILE variable to the right location:
$ export RAX_CREDS_FILE=~/.rackspace_credentials
Let's go ahead and create a machine using Rackspace Cloud.