Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created February 25, 2018 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save random-robbie/9c49f5d6c92884feb7b366802566b41d to your computer and use it in GitHub Desktop.
Save random-robbie/9c49f5d6c92884feb7b366802566b41d to your computer and use it in GitHub Desktop.
AWS Grant Object and Demo the permissions
#!/bin/bash
aws s3api put-object-acl --bucket $1 --key $2 --grant-full-control emailaddress=$3 --grant-write uri=http://acs.amazonaws.com/groups/global/AuthenticatedUsers
aws s3api get-object-acl --bucket $1 --key $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment