From 18a97a7714b89ab40753ddb2411cb221a6cfa2a0 Mon Sep 17 00:00:00 2001 From: Colin Johnson Date: Sun, 11 Nov 2012 23:22:51 +0000 Subject: [PATCH] updating README and IAM credential files for ec2cc and ec2ab. --- ec2-automate-backup/README.txt | 5 ++++- .../ec2ab - IAM User Required Permissions.json | 18 ++++++++++++++++++ ec2-cost-calculate-ruby/README.txt | 2 +- .../ec2cc - IAM User Required Permissions.json | 15 +++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 ec2-automate-backup/Resources/ec2ab - IAM User Required Permissions.json create mode 100644 ec2-cost-calculate-ruby/Resources/ec2cc - IAM User Required Permissions.json diff --git a/ec2-automate-backup/README.txt b/ec2-automate-backup/README.txt index d0c7be3..d9dc7eb 100644 --- a/ec2-automate-backup/README.txt +++ b/ec2-automate-backup/README.txt @@ -35,8 +35,11 @@ ec2-automate-backup requires one of the following two parameters be provided: - 0 0 1 * * ec2-user /home/ec2-user/ec2-automate-backup.sh -s tag -t "Backup-Monthly=true" # # Additional Information: +# +the file "ec2ab - IAM User Required Permissions.json" contains the IAM permissions required to run ec2-cost-calculate.rb in with the least permissions required as of 2012-11-21. + # Author: Colin Johnson / colin@cloudavail.com -Date: 2012-09-21 +Date: 2012-11-21 Version 0.1 License Type: GNU GENERAL PUBLIC LICENSE, Version 3 diff --git a/ec2-automate-backup/Resources/ec2ab - IAM User Required Permissions.json b/ec2-automate-backup/Resources/ec2ab - IAM User Required Permissions.json new file mode 100644 index 0000000..438eb1c --- /dev/null +++ b/ec2-automate-backup/Resources/ec2ab - IAM User Required Permissions.json @@ -0,0 +1,18 @@ +{ + "Statement": [ + { + "Action": [ + "ec2:DescribeVolumes", + "ec2:CreateSnapshot", + "ec2:DeleteSnapshot", + "ec2:CreateTags", + "ec2:Deletenapshot", + "ec2:DescribeTags" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + } + ] +} \ No newline at end of file diff --git a/ec2-cost-calculate-ruby/README.txt b/ec2-cost-calculate-ruby/README.txt index 499ff9a..08d6242 100644 --- a/ec2-cost-calculate-ruby/README.txt +++ b/ec2-cost-calculate-ruby/README.txt @@ -15,7 +15,7 @@ ec2-cost-calculate.rb has no parameter requirements. ec2-cost-calculate.rb defau optional parameters are available by running ec2-cost-calculate.rb --help. # Additional Information: # -the file "ec2cc - IAM User Required Permissions.json" contains the permissions required to run ec2-cost-calculate.rb in with the "Least Permissions" required. These permissions are "ec2:DescribeInstanceStatus","ec2:DescribeInstances" and "ec2:DescribeRegions." +the file "ec2cc - IAM User Required Permissions.json" contains the permissions required to run ec2-cost-calculate.rb in with the "Least Permissions" required as of 2012-11-11. # Author: Colin Johnson / colin@cloudavail.com Date: 2012-11-11 diff --git a/ec2-cost-calculate-ruby/Resources/ec2cc - IAM User Required Permissions.json b/ec2-cost-calculate-ruby/Resources/ec2cc - IAM User Required Permissions.json new file mode 100644 index 0000000..994618d --- /dev/null +++ b/ec2-cost-calculate-ruby/Resources/ec2cc - IAM User Required Permissions.json @@ -0,0 +1,15 @@ +{ + "Statement": [ + { + "Action": [ + "ec2:DescribeInstanceStatus", + "ec2:DescribeInstances", + "ec2:DescribeRegions" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + } + ] +} \ No newline at end of file