-
Notifications
You must be signed in to change notification settings - Fork 149
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
9627d8f commit: Error generated by "key" argument #142
Comments
Thanks for reporting this. I believe it should now be fixed. You may want to pull the most recent version of aws.signature off GitHub, as well, as it contains some related fixes. |
Oh and do let me know if this has gotten everything working correctly again! |
Hello Thomas, I very much appreciate your time and dedication! I have been following these comments for the past few hours and wanted to know if the process is fixed? I still seem to be getting the
error when trying to use aws.s3. Again thanks! Chad |
@HugoHehn @ChadEfaw @dkomd @danielerapati @willbowditch I believe this is now fixed. Changes have been made to aws.signature, aws.ec2metadata, and aws.s3, so you will need all of them from GitHub (if you're running on EC2) or the first and last (if not running on EC2). Installation status of aws.ec2metadata should now be irrelevant when not on EC2. I've tested this and it seems to be working. I'll wait 24 hours before pushing to CRAN in case I've introduced any new bugs. |
Hi Thomas, Thanks, D. |
I've updated aws.signature, aws.ec2metadata and aws.s3, within the last 20 minutes. |
@dkomd @jeparsons Did you restart your R session? You shouldn't be seeing that code anymore, which makes me think you're still pulling in the older version of aws.signature. |
The code was called on a freshly-built docker container [had to grab the signature and metadata packages], so there shouldn't have been any residual session info. I've since reverted to the cran package. |
@leeper I tried the new commit but continue to experience some issues which still seems to center around the aws.signature (installed the latest commit of that package as well before trying the new aws.s3 commit). Now the aws.s3 package fails already at installation due to aws.signature 0.3.5 not being installed, but I cannot find a 0.3.5 version on GitHub or CRAN.
Session info:
Really appreciate all the work you have put in trying to solve all this. Best, |
@HugoHehn Sorry about that - it was a typo in the version number. I've bumped it back to where it should be. Can you try to install again? |
@leeper - latest commit has fixed it for my setup. Thanks! |
@leeper Now it works excellently. Thanks a lot and sorry about not being faster with feedback the first time around. |
@willbowditch Great! @jeparsons Working for you as well? |
Can I use IAM Role instead of access/secret keys to access S3 in R? Due to security limitation we have to use only IAM Role. |
@rmodepalli are you talking about on an EC2 instance? If so, install the aws.ec2metadata package and the role profile will be used automatically. |
I installed aws.ec2metadata package and when I ran the listbucket getting below error. I am using in right way?
|
Check that |
locate_credentials() returning the output but region showing as us-east-1 but it should be us-west-1. By using the output from locate_credentials() I ran below command by changing the region then bucketlist() is working Do we need to set these env variables explicitly even though we are using EC2 instance metadata? |
@rmodepalli |
@leeper When I ran the below code still giving same error. When I set env with all above 4 parameters then only its working. In production to get the accesskey, secretkey, token is not possible.
|
Having some issues with the most recent aws.s3 commit (reference 9627d8f). When running e.g. the save_object() function with AWS_ACCESS_KEY_ID, AWS_DEFAULT_REGION and AWS_SECRET_ACCESS_KEY all set as before I get the error message:
Error in if (key == "") { : argument is of length zero
Assuming that this error is generated by the new code looking for an AWS_SESSION_TOKEN even when it is not needed? Everything works if reverting to the previous commit.
Many thanks,
H
The text was updated successfully, but these errors were encountered: