Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleExample 5

Revoking read and write access works in the same way as the previous examples for readonly access.

Code Block
policy p0002-sfx -w sean
Setting bucket=p0002-sfx, perm=-w, for user(s)='sean'

Alternatively:

Code Block
pawsey0002:/>policy p0002-sfx -
Deleting all policies on bucket=p0002-sfx



Panel

Here we show how to make the objects in a bucket publicly accessible.

Code Block
policy p0002-sfx +r *


Expand

{

    "Id": "pshell-2024-09-19",

    "Statement": [

        {

            "Sid": "2024-09-19-111715",

            "Effect": "Allow",

            "Action": [

                "s3:ListBucket",

                "s3:GetObject"

            ],

            "Resource": [

                "arn:aws:s3:::p0002-sfx",

                "arn:aws:s3:::p0002-sfx/*"

            ],

            "Principal": "*"

        }

    ]

}