You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to upload a file to a bucket that uses the S3 protocol but is not an AWS endpoint. For example, lets say I wan't to upload to http://{bucket-name}.s3.{region}.{storage_class}.cloud.ovh.net. Where is this documented? To me its something fundamental that many people want to do, it should be very easy to find.
I found the S3 documentation, but it doesn't seem to be the thing I'm looking for, also the S3 client config (but its empty, to be fair its not empty, but its a composed type that is way too complex to be read by a human). I also found this, but it seems unrelated to S3 client Media convert - Specifying Custom Endpoints
All the examples I found use Amazon's endpoint so it seems that in this particular case things are easy.
Using the type hierarchy and after a lot of guessing I think I found how to do it (correct me if I'm wrong):
autocomplete on S3Client first parameter, by name I found that credentials and endpoint probably were the two things I was looking for (that because I new the python library used endpoint_url to specify the bucket service URL.
from there I found the type definitions I was looking for:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to upload a file to a bucket that uses the S3 protocol but is not an AWS endpoint. For example, lets say I wan't to upload to
http://{bucket-name}.s3.{region}.{storage_class}.cloud.ovh.net
. Where is this documented? To me its something fundamental that many people want to do, it should be very easy to find.I found the S3 documentation, but it doesn't seem to be the thing I'm looking for, also the S3 client config (but its empty, to be fair its not empty, but its a composed type that is way too complex to be read by a human). I also found this, but it seems unrelated to S3 client Media convert - Specifying Custom Endpoints
All the examples I found use Amazon's endpoint so it seems that in this particular case things are easy.
Using the type hierarchy and after a lot of guessing I think I found how to do it (correct me if I'm wrong):
How I found this:
S3Client
first parameter, by name I found thatcredentials
andendpoint
probably were the two things I was looking for (that because I new the python library usedendpoint_url
to specify the bucket service URL.node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts
node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts
node_modules/@smithy/types/dist-types/http.d.ts
node_modules/@smithy/types/dist-types/endpoint.d.ts
The type documentation seems to say that V2 is the current version and the
Endpoint
type is deprecated in favor ofEndpointV2
:I haven't tested it yet.
Beta Was this translation helpful? Give feedback.
All reactions