vscode-remote-workspace icon indicating copy to clipboard operation
vscode-remote-workspace copied to clipboard

specific endpoint of s3

Open zh99998 opened this issue 7 years ago • 3 comments

I'm trying to mount my Aliyun OSS which provide a Amazon S3 compatible API, just need to specific endpoint and can access with amazon sdk.

but I can't find anywhere to write endpoint in workspace

zh99998 avatar Jul 01 '18 09:07 zh99998

@zh99998

Can you give me an example how you access an endpoint via SDK?

mkloubert avatar Jul 01 '18 17:07 mkloubert

SDK do have a endpoint param in S3 constructor https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property

new AWS.S3({endpoint: 'my-endpoint', ...});

zh99998 avatar Jul 02 '18 04:07 zh99998

@zh99998

Since version 0.30.0 there is a new parameter endpoint.

If you use a value like

https://foo.bar.amazonaws.com

you should encode it to:

https%3A%2F%2Ffoo.bar.amazonaws.com

mkloubert avatar Jul 02 '18 22:07 mkloubert