Skip to content

Commit af75900

Browse files
committed
Update README.md
1 parent fce5a2d commit af75900

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@
22
Various scripts to make AWS management easier.
33

44
Developed and tested (mainly) on Debian Wheezy with Bash 4.2 and Python 2.7:
5+
```
6+
# apt-get install python2.7 python-pip
7+
# pip install awscli
8+
```
9+
```
10+
$ aws --version
11+
aws-cli/1.3.4 Python/2.7.3 Linux/3.2.0-4-amd64
12+
```
513

6-
<pre># apt-get install python2.7 python-pip
7-
# pip install awscli</pre>
14+
## backup-audit-aws
15+
Python script that connects to AWS, calculates a number of snaphosts availabe for each volume and sends a summary (a .csv file) via email.
816

9-
<pre>$ aws --version
10-
aws-cli/1.3.4 Python/2.7.3 Linux/3.2.0-4-amd64</pre>
17+
The script can check multiple AWS accounts. You need to have AWS access and secret keys, plus your AWS account ID. Account ID is used by *get_all_snapshots* and *get_all_images*.
18+
19+
SMTP server details are required if you want to send emails.
20+
21+
The **_getFreeSnapshots_** function can be used to remove snapshots that have:
22+
* no AMI *and*
23+
* no existing volume.
24+
25+
This function is not called by default.
26+
27+
### Usage
28+
`$ python ./backup-audit-aws.py`
1129

1230
## bulk-mod-of-aws-security-groups
1331
Bash script that opens a TCP/UDP/ICMP port on all AWS security groups. Script requires Python and aws cli.
@@ -19,4 +37,4 @@ Bash script that creates a new EC2 instance inside a VPC from an AMI. Script req
1937
Bash script that converts AWS IAM user's credentials to Amazon SES SMTP credentials. Script requires OpenSSL.
2038

2139
### Usage
22-
<pre>$ ./ses-smtp-conv.sh AWSAccessKeyID AWSSecretAccessKey</pre>
40+
`$ ./ses-smtp-conv.sh AWSAccessKeyID AWSSecretAccessKey`

0 commit comments

Comments
 (0)