s3://mybucket/path/to/file
With path/to/file being the object key.
Necessary security information can be provided in as part of the URL, in environment variables or from configuration files.
The full URL format is:
s3[+SCHEME]://[ID[:SECRET[:TOKEN]]@]BUCKET/PATH
The elements are:
The protocol used. Defaults to https.
The user AWS access key.
The secret key for use with the access key.
Token used for temporary security credentials.
AWS S3 bucket.
Path to the object under the bucket.
The environment variables below will be used if the user ID is not set.
The user AWS access key.
The secret key for use with the access key.
The region to use. Defaults to us-east-1.
Token used for temporary security credentials.
The profile to use in credentials, config or s3cfg files. Defaults to default.
Same as above.
Location of the credentials file. Defaults to ~/.aws/credentials.
Location of the s3cfg file. Defaults to ~/.s3cfg.
Sets the host. Defaults to s3.amazonaws.com.
If set use signature v2 rather the default v4. This will limit the plugin to reading only.
Sets the upload part size in Mb, the minimum being 5Mb. By default the part size starts at 5Mb and expands at regular intervals to accommodate bigger files (up to 2.5 Tbytes with the current rate). Using this setting disables the automatic part size expansion.
Sets the URL style. Options are auto (default), virtual or path.
In the absence of an ID from the previous two methods the credential/config files will be used. The default file locations are either ~/.aws/credentials or ~/.s3cfg (in that order).
Entries used in aws style credentials file are aws_access_key_id, aws_secret_access_key, aws_session_token, region and addressing_style. Only the first two are usually needed.
Entries used in s3cmd style config files are access_key, secret_key, access_token, host_base, bucket_location and host_bucket. Again only the first two are usually needed. The host_bucket option is only used to set a path-style URL, see below.
Path-style can be forced by setting one either HTS_S3_ADDRESS_STYLE, addressing_style or host_bucket. The first two can be set to path while host_bucket must not include the %(bucket).s string.
htslib website: <http://www.htslib.org/>
Copyright © 2023 Genome Research Limited (reg no. 2742969) is a charity registered in England with number 1021457. Terms and conditions.