Interface: S3Options
Amazon S3 options.
AWS credentials are required, please see getting your credentials.
To set credentials define AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables directly,
or use ~/.aws/credentials file,
or use ~/.aws/config file. For the last method to work you will also need to define AWS_SDK_LOAD_CONFIG=1 environment variable.
Example configuration:
{
"build":
"publish": {
"provider": "s3",
"bucket": "bucket-name"
}
}
}
Extends
Properties
accelerate?
readonlyoptionalaccelerate?:boolean
If set to true, this will enable the s3 accelerated endpoint These endpoints have a particular format of: ${bucketname}.s3-accelerate.amazonaws.com
acl?
readonlyoptionalacl?:"private"|"public-read"|null
The ACL. Set to null to not add.
Please see required permissions for the S3 provider.
Default
public-read
Overrides
bucket
readonlybucket:string
The bucket name.
channel?
optionalchannel?:string|null
The update channel.
Default
latest
Inherited from
encryption?
readonlyoptionalencryption?:"AES256"|"aws:kms"|null
Server-side encryption algorithm to use for the object.
endpoint?
readonlyoptionalendpoint?:string|null
The endpoint URI to send requests to. The default endpoint is built from the configured region.
The endpoint should be a string like https://{service}.{region}.amazonaws.com.
forcePathStyle?
readonlyoptionalforcePathStyle?:boolean
When true, force a path-style endpoint to be used where the bucket name is part of the path. Path-style Access
path?
readonlyoptionalpath?:string|null
The directory path.
Default
/
Inherited from
provider
readonlyprovider:"s3"
The provider. Must be s3.
Overrides
publishAutoUpdate?
readonlyoptionalpublishAutoUpdate?:boolean
Whether to publish auto update info files.
Auto update relies only on the first provider in the list (you can specify several publishers). Thus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.
Default
true
Inherited from
BaseS3Options.publishAutoUpdate
region?
optionalregion?:string|null
The region. Is determined and set automatically when publishing.
requestHeaders?
readonlyoptionalrequestHeaders?:OutgoingHttpHeaders
Any custom request headers
Inherited from
storageClass?
readonlyoptionalstorageClass?:"STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"|null
The type of storage to use for the object.
Default
STANDARD
timeout?
readonlyoptionaltimeout?:number|null
Request timeout in milliseconds. (Default is 2 minutes; O is ignored)
Default
120000