1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Are there any more detailed error logs being output?
Are there any problems with the code syntax?
Does the IAM policy you are using have permissions set to view S3?
At a minimum, the following policies are required to view an S3 bucket.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::my-bucket"
}
]
}
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
This works from other servers in our network it does not work from my home laptop, there is something to do with my ip not allowed I think but not sure how to add my ip to the policy?? ANYONE?
Do you have an access key and secret access key set on your home PC? If no special settings are made on the S3 side, there is no need to restrict by IP.