nph commented on issue #38421: URL: https://github.com/apache/arrow/issues/38421#issuecomment-1966939799
@antonio-yuen-zocdoc A potential work around is to get the temporary AWS credentials using [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts/client/assume_role.html) and then pass these directly to `S3FileSystem`, e.g.: ``` import boto3 session = boto3.session.Session() sts = session.client('sts') response = sts.assume_role( RoleArn=role_arn, RoleSessionName='my-role-session', ) fs = S3FileSystem( access_key=response['Credentials']['AccessKeyId'], secret_key=response['Credentials']['SecretAccessKey'], session_token=response['Credentials']['SessionToken'], ``` I've used a similar approach to create an `S3FileSystem` using credentials for a specific AWS profile name (which currently isn't possible using `S3FileSystem` directly). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
