Skip to content

Sagemaker don't take default bucket without "Create Bucket permission" #2725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danielemocavini opened this issue Oct 22, 2021 · 2 comments
Closed
Assignees

Comments

@danielemocavini
Copy link

if self._default_bucket:

Describe the bug:
Sagemaker don't take default bucket if you don't have the "Create Bucket permission".
This is very limiting since i can't for example add configuration or jars at my PySparkProcessor run.

To reproduce:

sagemaker.Session(default_bucket=BUCKET).default_bucket()

and since i don't have the permission to create a new bucket i obtain

ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied.

Expected behavior:

Reading at the code i found that Sagemaker always try to create a default bucket to check if default_bucket already exists, maybe should be great to find other way to check the default bucket if there is no permission to create bucket.

@ahsan-z-khan ahsan-z-khan self-assigned this Dec 3, 2021
@giuseppeporcelli
Copy link
Contributor

Any updates?

@mufaddal-rohawala
Copy link
Member

Fixed in #3165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants