-
Notifications
You must be signed in to change notification settings - Fork 75
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
mcap cli: Add support for Azure Storage Accounts and AWS S3 remote files #957
base: main
Are you sure you want to change the base?
Conversation
275bcdf
to
566b33f
Compare
Hey @RileyEv, thanks! This will be useful. I can confirm it works on GCS:
On Azure I'm not sure I'm getting the call right but I see this:
I am not sure how it wants me to give it an account name. I do have an authenticated azure CLI session so my expectation would be I need no other config/params to do this. |
on AWS I see this - the object definitely does exist:
is that the call you'd expect to work? edit:
|
aws
I think that means that something is not quite right with the authentication. I get the same message when trying to use your bucket which I expect I wouldn't have access to.
How have you setup credentials? I've tested it with credentials from IAM Identity Center (SSO) and another auth method using aws-okta and both work for me.
azureFor Azure I think the default format expected by the library is a little weird. It requires that the storage account be set as an env var. It can also be passed as an option when building the url representing the blob. I think your usage shows that the need for an env var and unusual format is probably going to be confusing for users and it'd be much more helpful if you can paste in a blob store link like https://mcaptesting.blob.core.windows.net/mcap/nuscenes.mcap (maybe prefixed with I did manage to get it working though, by setting the env vars.
|
I'm a bit meh on the CLI tool working directly on remote files but I see we already have GCS support. Is there anything else you need in this PR for the AWS support? I don't see why we need to block this on adding Azure support - someone else can come along and add that later. |
Is this PR ready for review? It is still marked as draft. If you have lost interest can we close it? |
Public-Facing Changes
You can now use mcap cli with Azure Storage Accounts and AWS S3 remote files, as well as GCS.
Description
Uses gocloud.dev from Google to build generic clients for Azure, AWS and Google Cloud.
Note: I am yet to test all these changes on every cloud environment
Azure Usage
TODO
AWS Usage
~/.aws/config
orAWS_REGION=...
GSC Usage
Hopefully unchanged (need to check)