Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Signed URL with custom domain #154

Open
akashsethiya opened this issue Jan 16, 2022 · 1 comment
Open

Create Signed URL with custom domain #154

akashsethiya opened this issue Jan 16, 2022 · 1 comment

Comments

@akashsethiya
Copy link

Current behavior

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?....

Expected behavior

I need url in the below format
https://a.example.com/test1.pdf?....

Whats missing here??
Please help

@gr8Adakron
Copy link
Contributor

gr8Adakron commented Jan 26, 2022

This issue has been resolved in recent PR#156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants