image-steam-awss3
v1.0.6
Published
AWS S3 storage client for Image Steam: https://github.com/asilvas/node-image-steam
Downloads
12
Readme
image-steam-aws-s3
AWS S3 client for Image Steam. If you're using AWS, you're in the right place. If all you need is an S3-compatible client, check out image-steam-s3.
Options
import isteamAWSS3 from 'image-steam-awss3';
const s3 = new isteamAWSS3({
region: 'us-west-2',
bucket: 'isteam'
});
| Option | Type | Default | Info |
| --- | --- | --- | --- |
| region | string
| required | AWS Region of S3 bucket |
| bucket | string
| required | Unique name of S3 bucket |
| pathPrefix | string
| ''
| Prefix of all paths |
Usage
Example:
import isteam from 'image-steam';
const options = {
storage: {
app: {
static: {
driver: 'http',
endpoint: 'https://some-endpoint.com'
}
},
cache: {
driverPath: 'image-steam-awss3',
options: {
region: 'us-west-2',
bucket: 'isteam-cache'
}
}
}
}
http.createServer(new isteam.http.Connect(options).getHandler())
.listen(13337, '127.0.0.1')
;