Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
PGDUMP_PATH: path.join(__dirname, '../bin/postgres-13.3'),
// maximum time allowed to connect to postgres before a timeout occurs
PGCONNECT_TIMEOUT: 15,
USE_IAM_AUTH: false
USE_IAM_AUTH: false,
S3_STORAGE_CLASS: 'STANDARD'
}
3 changes: 2 additions & 1 deletion lib/upload-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ async function uploadS3(stream, config, key) {
const result = await s3.upload({
Key: key,
Bucket: config.S3_BUCKET,
Body: stream
Body: stream,
StorageClass: config.S3_STORAGE_CLASS
}).promise()

console.log('Uploaded to', result.Location)
Expand Down