The s3:GetObject
permission in an AWS S3 policy allows a user to retrieve objects (files) from an S3 bucket. This permission is crucial for read access, enabling users to download or view the contents of the objects stored in the bucket123.
Here’s an example of how s3:GetObject
might be used in a policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}
In this example, the policy grants permission to get (read) any object within the specified bucket.
Would you like more details on how to configure this permission? 1: AWS S3 Policy Actions 2: GetObject Permission 3: AWS CLI GetObject
The s3:ListBucket
permission in an AWS S3 policy allows a user to list the objects within a bucket. This permission is essential for operations that involve viewing the contents of a bucket, such as listing all files or directories.
Here’s an example of how s3:ListBucket
might be used in a policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::your-bucket-name"
}
]
}
In this example, the policy grants permission to list the objects in the specified bucket1.
Would you like more details on how to configure this permission?
标签:Different,1046,permission,S3,bucket,AWS,s3,policy From: https://www.cnblogs.com/alex-bn-lee/p/18382500