I have a custom AMI that failed half way through the upload using ec2-upload-bundle but the remaining items were uploaded via the AWS control panel. However, this means that about half of the bundled parts of the bucket are missing the “za-team” grantee which appears to be required for the AMI to launch successfully. How can I go about applying the relevant “Open/Download” permissions to the “za-team” in bulk to the files that are missing it in the bucket?
I have a custom AMI that failed half way through the upload using ec2-upload-bundle
Share
This took me a little while to figure out as I’m new to Ruby; however, the following loops over all of the files in the bucket and appends the permissions indicated on the files. The relevant SDK documentation on the
acl.grantcommand gives a bit of information on what the script is doing.