vscode-remote-workspace
vscode-remote-workspace copied to clipboard
specific endpoint of s3
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
Can you give me an example how you access an endpoint via SDK?
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
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