Open akashsethiya opened 2 years ago
bucket_name = "a.example.com" ExAws.Config.new(:s3) |> Map.put(:access_key_id, s3_access_key) |> Map.put(:secret_access_key, s3_secret_key) |> ExAws.S3.presigned_url( :get, bucket_name, "test1.pdf", expires_in: 1000 )
This generates url of the format https://s3.ap-south-1.amazonaws.com/a.example.com/test1.pdf?....
https://s3.ap-south-1.amazonaws.com/a.example.com/test1.pdf?....
I need url in the below format https://a.example.com/test1.pdf?....
https://a.example.com/test1.pdf?....
Whats missing here?? Please help
This issue has been resolved in recent PRhttps://github.com/ex-aws/ex_aws_s3/pull/156
Current behavior
This generates url of the format
https://s3.ap-south-1.amazonaws.com/a.example.com/test1.pdf?....
Expected behavior
I need url in the below format
https://a.example.com/test1.pdf?....
Whats missing here?? Please help