botor icon indicating copy to clipboard operation
botor copied to clipboard

botor does not play nice with `aws sso login`

Open benyamindsmith opened this issue 2 years ago • 1 comments

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

benyamindsmith avatar Nov 07 '23 00:11 benyamindsmith

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

nfultz avatar Nov 07 '23 00:11 nfultz