You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"CreateBucket operation: Access Denied..." when calling Session.default_bucket()
#2396
I added a command to L387 of 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 returns None even when the bucket exists
could be tricky to reproduce, the execution role has limited permissions (can only list, upload/download, to/from this bucket), for example aws s3 ls is denied, let me know if there is any more info you need
Expected 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:
This discussion was converted from issue #1935 on May 20, 2021 18:33.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Calling
default_bucket()on asagemaker.session.Sessionobject, when specifying a customdefault_bucket, raises:ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Deniedwhen the default bucket already exists
possibly related to #1174
To reproduce
src/sagemaker/session.pyto display the number of keys in the bucket to verify that the intended default bucket is accessed:bucket.creation_datereturnsNoneeven when the bucket existsaws s3 lsis 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:
All reactions