Example1 - give a list of Pawsey users readonly access
Code Block
project123:/>policy my-bucket +r user1,user2,user3,user4
Setting bucket=my-bucket, perm=+r, for user(s)='user1,user2,user3,user4'
Note: if a user attempts to list buckets they will see nothing. However, if they attempt to list objects inside the bucket it will show the objects inside my-bucket/ - see Note 4.
Panel
title
Example 2 - revoke user3 from having read access.
Code Block
project123:/>policy my-bucket -r user3
Setting bucket=my-bucket, perm=-r, for user(s)='user3'
Panel
title
Example 3 - grant read and write permission.
Code Block
project123:/>policy my-bucket +rw user1
Setting bucket=my-bucket, perm=+rw, for user(s)='user1'
Panel
title
Example 4 - make a bucket readonly and publicly accessible.
Code Block
project123:/>policy my-bucket +r *
Setting bucket=my-bucket, perm=+r, for user(s)=None
Panel
title
Example 5 - remove all policies on a bucket.
Code Block
project123:/>policy my-bucket -
Deleting all policies on bucket=my-bucket
...
Expand
title
Examples...
Panel
title
Example 1 - default lifecycle that enables both enable multi-part cleanup and expired version cleanup after 30 days
pshell> lifecycle my-bucket +mv
Panel
title
Example 1 - a basic bucket lifecycle that cleans 2 - clean up failed multi-part uploads after 7 days.
Code Block
pshell> lifecycle my-bucket +m 7
Panel
title
Example 2 - a basic bucket lifecycle that turns turn on versioning and deletes delete expired non-current objects after 30 days.