interface PublisherS3Config {
    accessKeyId?: string;
    bucket?: string;
    endpoint?: string;
    folder?: string;
    keyResolver?: ((fileName, platform, arch) => string);
    omitAcl?: boolean;
    public?: boolean;
    region?: string;
    s3ForcePathStyle?: boolean;
    secretAccessKey?: string;
    sessionToken?: string;
}

Properties

accessKeyId?: string

Your AWS Access Key ID

Falls back to the the default credential provider chain if not provided

bucket?: string

The name of the S3 bucket to upload artifacts to

endpoint?: string

The endpoint URI to send requests to.

E.g. https://s3.example.com

folder?: string

The key prefix to upload artifacts to.

E.g. my/prefix

Default: appVersion

keyResolver?: ((fileName, platform, arch) => string)

Custom function to provide the key to upload a given file to

Type declaration

    • (fileName, platform, arch): string
    • Parameters

      • fileName: string
      • platform: string
      • arch: string

      Returns string

omitAcl?: boolean

Whether to omit the ACL when creating the S3 object. If set, public will have no effect.

Default: false

public?: boolean

Whether or not to make uploaded artifacts public to the internet

Default: false

region?: string

The region to send service requests to.

E.g. eu-west-1

s3ForcePathStyle?: boolean

Whether to force path style URLs for S3 objects.

Default: false

secretAccessKey?: string

The secret for your AWS Access Key

Falls back to the the default credential provider chain if not provided

sessionToken?: string

The session token for your AWS Access Key

Falls back to the the default credential provider chain if not provided