I tried allowing a IAM role to create snapshots of EBS volumes with these permissions
"Action": [
...
"ebs:StartSnapshot",
"ebs:PutSnapshotBlock",
"ebs:CompleteSnapshot",
...
],
"Resource": "*",
"Effect": "Allow"
but I am getting a failure with this reason
"You are not authorized to perform this operation. Encoded authorization failure message: ...
The official AWS documentation says that these permission are the right ones for creating the snapshot, but as stated, they don't work. So what can I do here
Update:
adding "ec2:*" to permissions seems to fix the problem, but I obviously can't leave it at that. "ec2:CreateSnapshot" alone doesn't seem to work