Although this chapter is not directly SaltStack related, many of the examples in this book are geared towards using EC2 as the base for our SaltStack machines.
To get started on amazon, head over to aws.amazon.com and click on the “Sign Up” button. If you don't already have an aws account, sign up here.
This will bring you to the “Amazon Web Services” screen. Click on your name and find the “Security Credentials” option at the top.
This is where we'll find the
AWS_SECRET_KEY. Take note of these.
Set these as environment variables on your local machine. This can be easily done using the
export command. Place the following into a file in a convenience directory. We can put the following into
#!/bin/bash export AWS_ACCESS_KEY="YOUR_ACCESS_KEY" export AWS_SECRET_KEY="YOUR_SECRET_KEY"
Once you have that set to go, then anytime you want to start working with your
personal_aws keys, all you'll have to do is
source that file, like so: