-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Forbidden #10
Comments
HTTP Error 403: Forbidden means, you don't have access to a resource in S3. Double check the permissions available for the security credentials that you are using |
Yeah, that was what I figured. Unfortunately, I can't see anything obvious. The IAM role for the server opens up the entire bucket. All of the repos are in the same bucket, so you'd think that if one repo works, they all should work. Which is why I'm assuming I have something simple screwed up. {
"Statement": [
{
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::*"
]
},
{
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::example-yum"
]
},
{
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::example-yum/*"
]
}
]
} |
I am not able to find out the exact problem by looking at your Policy Statement. One crude method I would suggest to try is, "Action" : ["s3:Get*"] instead of "Action" : ["s3:GetObject"] |
I'm back with another fun problem. Again. :) Perhaps by typing it all out in a issue report I'll find a mistake on my end. Here's hoping. :)
I'm still working on mirroring a handful of public repositories to S3. I've got most of CentOS and RepoForge working correctly with yum-s3-iam, as well as our own private repo.
This time I'm trying to mirror the Fedora EPEL repo. Pretty simple script to mirror it:
Seems to work fine:
I then sync it to S3 (along with the others) with s3cmd:
Everything shows up in S3 successfully. I updated the
/etc/yum.repos.d/epel.repo
config:When I try to do a yum info, I get a 403:
If I disable the EPEL repo, it works. Meanwhile, CentOS updates and RepoForge work just fine with yum-s3-iam. So there has to be something different about the EPEL repo. Any suggestions on what I might look for?
The text was updated successfully, but these errors were encountered: