s3:GetAccountPublicAccessBlock is a Read access-level action in the s3 service. Grants permission to retrieve the PublicAccessBlock configuration for an AWS account
This action does not support resource-level permissions; use "Resource": "*" in your policy.
Keys you can use in the Condition block of a policy that grants s3:GetAccountPublicAccessBlock.
Filters access by the resource owner AWS account ID
Filters access by the TLS version used by the client
Filters access by authentication method
Filters access by the age in milliseconds of the request signature
Filters access by the version of AWS Signature used on the request
Filters access by unsigned content in your bucket
A minimal policy that allows s3:GetAccountPublicAccessBlock. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowS3GetAccountPublicAccessBlock",
"Effect": "Allow",
"Action": "s3:GetAccountPublicAccessBlock",
"Resource": "*"
}
]
}