lozbrown commented on issue #45702: URL: https://github.com/apache/arrow/issues/45702#issuecomment-2709742777
Hi @raulcd yes, I've tested this, attempting to use role results in an error of the following form > OSError: When getting information for key 'schemas/meta.db/trino_queries_iceberg/metadata/00000-41568416-bc76-4236-afab-a7bec772eb32.metadata.json' in bucket 'REDACTED-BUCKET': AWS Error ACCESS_DENIED during HeadObject operation: No response body. the following is a workaround for this, but probably not great as it leads to a static credential for a short lived credential. ``` import boto3 session = boto3.session.Session() os.environ['AWS_ACCESS_KEY_ID']=session.get_credentials().access_key os.environ['AWS_SECRET_ACCESS_KEY']=session.get_credentials().secret_key os.environ['AWS_SESSION_TOKEN']=session.get_credentials().token ``` this may be related to #38421 -- 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]
