Skip to content
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

how to use with non-AWS s3 providers? #55

Open
rabernat opened this issue May 26, 2021 · 3 comments
Open

how to use with non-AWS s3 providers? #55

rabernat opened this issue May 26, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation question What is going on??? :thinking emoji:

Comments

@rabernat
Copy link

rabernat commented May 26, 2021

Many object storage services implement the S3 protocol without actually being AWS S3. For example, Wasabi and Open Storage Network (OSN). For these services, you define a custom endpoint URL for S3.

I would like to try cloud-files with OSN. For the AWS CLI, I would use this configuration

[plugins]
endpoint = awscli_plugin_endpoint

[profile osn]
aws_access_key_id=<key>
aws_secret_access_key=<secret>
s3 =
    endpoint_url = https://ncsa.osn.xsede.org
s3api =
    endpoint_url = https://ncsa.osn.xsede.org

However, I'm having trouble figuring out how to make this work. I read the wiki and looked at the code, but I couldn't figure it out. It is supported?

Thanks a lot for your help and for providing this useful package.

@william-silversmith
Copy link
Contributor

william-silversmith commented May 26, 2021

Hey Ryan! Glad you're finding this useful.

We use a kind of non-standard way of doing this, but I think it makes a lot of sense.

cf = CloudFiles("s3://https://ncsa.osn.xsede.org/BUCKET", secrets=SECRETS)

This functionality isn't super battle tested, so please report any issues or any apparent design flaws.

@william-silversmith william-silversmith added documentation Improvements or additions to documentation question What is going on??? :thinking emoji: labels May 26, 2021
@rabernat
Copy link
Author

Awesome, will give it a try.

@william-silversmith
Copy link
Contributor

The thing that immediately occurs to me is that there isn't a great way to set a per-host secrets file. I think it will probably pick up your default aws-secret.json though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question What is going on??? :thinking emoji:
Projects
None yet
Development

No branches or pull requests

2 participants