daroczig / botor

Reticulate wrapper on 'boto3' with convenient helper functions -- aka "boto fo(u)r R"
https://daroczig.github.io/botor
30 stars 5 forks source link

botor does not play nice with `aws sso login` #17

Open benyamindsmith opened 8 months ago

benyamindsmith commented 8 months ago

When I am working with boto3 I can connect to AWS by typing aws sso login in the terminal.

However, when I am trying this with botor, its not working.

Example

# Go through the sso process via browser
system("aws sso login")

s3 <- botor::botor_client("s3")
pr<-s3$list_objects_v2(Bucket = "<BUCKET>",Prefix = "<PREFIX>",Delimiter = "/")
Error: botocore.errorfactory.NoSuchBucket: An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist
nfultz commented 8 months ago

Does it work if you manually specify a profile? See also https://stackoverflow.com/questions/62311866/how-to-use-the-aws-python-sdk-while-connecting-via-sso-credentials