Hey ok great:
You need 3 forwardslashes (“///”) for the S3 URL.
Don’t set an S3 endpoint unless you know you need it. The library will construct it for you automatically. But if you really want to set it, it looks like https://my-bucket.s3.us-west-2.amazonaws.com
. More info at Accessing an Amazon S3 general purpose bucket - Amazon Simple Storage Service.
Generally people only set the endpoint if they’re NOT using AWS, i.e. using S3-compatible storage offered by some other provider, or running their own S3-compatible storage server like MinIO.
Just to explain the 3 slashes, quoting storage docs:
s3://endpoint/bucket/path/to/file
s3:///bucket/file
(uses the default endpoint)
so using 3 slashes will use the default endpoint, which will be set automatically for you, or which you can override with AWS_S3_ENDPOINT_URL
(if you really need to). Open to suggestions to how I can make this any clearer.