summaryrefslogtreecommitdiffstats
path: root/README_AWS.md
blob: 2602f9883b9c4e5868fe22d0a8c01780db8516a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

AWS Setup Instructions
======================

Get AWS API credentials
-----------------------
1. [AWS credentials documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html)


Create a credentials file
-------------------------
1. Create a credentials file (eg ~/.aws_creds) that looks something like this (variables must have have these exact names).
```
   export AWS_ACCESS_KEY_ID='AKIASTUFF'
   export AWS_SECRET_ACCESS_KEY='STUFF'
```

1. source this file
```
  source ~/.aws_creds
```

1. Note: You must source this file in each shell that you want to run cloud.rb


Install Dependencies
--------------------
1. Ansible requires python-boto for aws operations:
```
  yum install -y ansible python-boto
```


Test The Setup
--------------
1. cd openshift-online-ansible
1. Try to list all instances:
```
  ./cloud.rb aws list
```