This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
"CreateBucket operation: Access Denied..." when calling Session.default_bucket() #1935
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
Calling
default_bucket()
on asagemaker.session.Session
object, when specifying a customdefault_bucket
, raises:ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied
when the default bucket already exists
possibly related to #1174
To reproduce
src/sagemaker/session.py
to display the number of keys in the bucket to verify that the intended default bucket is accessed:bucket.creation_date
returnsNone
even when the bucket existsaws s3 ls
is denied, let me know if there is any more info you needExpected behavior
sm_session.default_bucket()
should return the same default bucket name specified when constructing the sagemaker session object.Screenshots or logs

If applicable, add screenshots or logs to help explain your problem.
System information
A description of your system. Please provide:
The text was updated successfully, but these errors were encountered: