-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot get S3 private bucket artifact to download #8454
Comments
👋 Hello @davidr912! I've also struggled with this before. Dots and Dashes😅 You did actually provide a valid S3 path. According to the documentation, it's the newer version of the "virtual hosted style", with the S3 dot region endpoint structure, instead of the older dash format. This should make more sense with the following example: Newer virtual host style with S3 dot region endpoint structure: Older virtual host style with S3 dash region endpoint structure: I think you could fix the error you were seeing by replacing the
Improving S3 DetectionThe In the future we should add support for this newer dash style, since this is a pretty frustrating thing to debug, and is the recommended pattern by AWS. |
Hi @picatz, thanks for the info I had to mess with it a little bit more until I eventually got to just:
which works. If I put https:// on the front of that it will 403, and S3::https:// tells me it's not a valid S3 URL - not sure why But I have a working format now at least, thank you 👍 |
I should say though - annoyingly that only works with explicit credentials. I cannot get it to honour IAM still. On top of that |
Awesome, that helps confirm my suspicions about
I also suspect this is the case. |
Closed by #9349, which we expect to ship in Nomad 1.0.2 |
You have restored my sanity. Thanks :) |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
0.12
Operating system and Environment details
Ubuntu 18.04/Bionic
Issue
Using
artifact
I cannot get a file to download from a private S3 bucketThe machine is configured with an IAM profile which works via the
aws
CLI tool but not in NomadReproduction steps
aws_access_key_id
andaws_access_key_secret
for a user with the same permissions still generates a 403And yet if I use a batch job and run
I get valid results in the job log because the AWS CLI is using the IAM profile
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: