Answers for "how to check if I have access to s3 bucket on AWS CLI"

0

how to check if I have access to s3 bucket on AWS CLI

{
    "Policy": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::my-bucket/*\"},{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::my-bucket/secret/*\"}]}"
}
Posted by: Guest on March-16-2022
0

how to check if I have access to s3 bucket on AWS CLI

aws s3api get-bucket-policy --bucket my-bucket
Posted by: Guest on March-16-2022
0

how to check if I have access to s3 bucket on AWS CLI

aws s3api get-bucket-policy --bucket mybucket --query Policy --output text > policy.json
Posted by: Guest on March-16-2022

Code answers related to "how to check if I have access to s3 bucket on AWS CLI"

Browse Popular Code Answers by Language