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

ec2-automate-backup: tags not applied to snapshots #120

Open
ActionScripted opened this issue Feb 18, 2016 · 1 comment
Open

ec2-automate-backup: tags not applied to snapshots #120

ActionScripted opened this issue Feb 18, 2016 · 1 comment

Comments

@ActionScripted
Copy link

When I run the following command:

actionscripted@dev $ ./ec2-automate-backup.sh -s tag -t Backups,Values=true -n -h -u

The output is:

Tagging Snapshot snap-6fac131e with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=Name,Value=ec2ab_vol-964a987a_1455760489 Key=InitiatingHost,Value='dev' Key=Volume,Value=vol-964a987a Key=Created,Value=1455760489

The snapshot is created but there aren't any tags applied to it, it isn't named, etc. Under tags it's just empty.

AWS CLI version:

aws-cli/1.10.5 Python/2.7.6 Linux/3.13.0-77-generic botocore/1.3.27

Screenshot in case that's in any way helpful:
ec2_management_console

@niciliketo
Copy link

@ActionScripted might not be the same in your case, but I had similar problem and traced it back to the permissions which the user I was running as. I had to add the create tags permission.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:Describe*",
                "ec2:CreateSnapshot",
                "ec2:DeleteSnapshot",
                "ec2:CreateTags"
            ],
            "Resource": "*"
        }
    ]
}

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

2 participants