Skip to content

Create Signed URL with custom domain #154

@akashsethiya

Description

@akashsethiya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions