How to load model from S3?

I tried following the docs and running this command — rasa run --model 20210508-114301.tar.gz --remote-storage aws but got this error:

I think I set up my environmental variables correctly, though I was uncertain about what the AWS_ENDPOINT_URL variable should be. Currently it equals https://XXX.s3-us-west-2.amazonaws.com/20210508-114301.tar.gz , where XXX is the name of the S3 bucket.

Update: I was able to load the model successfully by setting AWS_ENDPOINT_URL equal to https://s3-us-west-2.amazonaws.com.