Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge option doesn't appear to be working? #134

Open
allangourdie2 opened this issue Jul 16, 2016 · 2 comments
Open

Purge option doesn't appear to be working? #134

allangourdie2 opened this issue Jul 16, 2016 · 2 comments

Comments

@allangourdie2
Copy link

Hi. I am using...
/home/ec2-user/ec2-automate-backup.sh -v vol-abc -k 21 –p

However, nothing ever gets purged? The output from my logs looks like...
Snapshots taken by ec2-automate-backup.sh will be eligible for purging after the following date (the purge after date given in seconds from epoch): 1470452701.
Tagging Snapshot snap-95382979 with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=PurgeAfterFE,Value=1470452701 Key=PurgeAllow,Value=true

Policy looks like...
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot",
"ec2:DeleteSnapshot",
"ec2:CreateTags",
"ec2:Describe_"
],
"Resource": [
"_"
]

Any ideas?

@gaubapravar
Copy link

did you get through this. @allangourdie2
Im facing the same problem. :(

@Atekka85
Copy link

In our case the following policy right was missing for the user who created the backup from the machine:
ec2:DescribeSnapshots
After adding the right the script now was able to list the snapshots for removal before that, that functions resulted an empty list therefore other function does not removed anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants