-
Notifications
You must be signed in to change notification settings - Fork 88
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
Ques: On s3 url #111
Comments
@ericdill could you plz triage this question, i am very thankful for your time answering this in advance. |
What problem are you currently having? What config have you set in your jupyter_notebook_config.py? |
@ericdill: I’ll be honest, I can’t talk about it in the open due to security constraints and federal laws. I just need to know where and how you’re generating the string that connects to the bucket itself. I wish I could share any part of the code but I would be in a lot of trouble. |
@ericdill I am trying to configure a special type of s3 for gov't. I just need an explanation on how you are generating the url/connection bucket strings. |
Have you looked through this codebase to see how and where |
@ericdill: Going back to the code -> is |
from s3contents import S3ContentsManager
c = get_config()
# Tell Jupyter to use S3ContentsManager for all storage.
c.NotebookApp.contents_manager_class = S3ContentsManager
c.S3ContentsManager.access_key_id = "{{ AWS Access Key ID / IAM Access Key ID }}"
c.S3ContentsManager.secret_access_key = "{{ AWS Secret Access Key / IAM Secret Access Key }}"
c.S3ContentsManager.session_token = "{{ AWS Session Token / IAM Session Token }}"
c.S3ContentsManager.bucket = "{{ S3 bucket name }}"
# Optional settings:
c.S3ContentsManager.prefix = "this/is/a/prefix/on/the/s3/bucket"
c.S3ContentsManager.sse = "AES256"
c.S3ContentsManager.signature_version = "s3v4"
c.S3ContentsManager.init_s3_hook = init_function # See AWS key refresh If you add c.S3ContentsManager.endpoint_url = whatever_url_you_want then things will probably work. I assume you've already tried this and it didnt work? |
Yes @ericdill I did try that. As for ** I am also of the opinion that this does not work on AWS GovCloud, at this point. |
Got it working and here is the answer: dask/helm-chart#78 (comment) *I'll close this as well now, thank you for your help @ericdill !!! |
In the file https://github.com/danielfrg/s3contents/blob/master/s3contents/s3manager.py, on line 20 you have:
Is this the part of the URL you use to connect to the s3 bucket in order to read/write to it?
If not, where does that code exist? Please advise.
The text was updated successfully, but these errors were encountered: