• Get a presigned url for s3. Handles s3 (start with s3://) and ordinary https urls. AWS parameter need to be loaded separatly i.e import AWS from "aws-cli"

    Parameters

    • AWS: any

      aws-cli reference.

    • url: string

      The url to sign

    • awsAccessKeyId: string

      access key id

    • awsSecretAccessKey: string

      secret key

    • region: string

      Region of the bucket. e.g "eu-west-1"

    • expires: number = 60

      expire duration

    Returns string | undefined