Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
chore: specify REGION in environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ishibashi_y committed Jul 2, 2019
1 parent 58d83e9 commit 94c724a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions script/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
*/
import * as aws from 'aws-sdk';

// Specify region by environment variable `REGION`. Default is `ap-northeast-1`
const region = process.env.REGION || 'ap-northeast-1';

const dynamo = new aws.DynamoDB.DocumentClient({
region: 'ap-northeast-1'
region
});
const s3 = new aws.S3({
region: 'ap-northeast-1'
region
});

// Split an array into smaller chunks
Expand Down

0 comments on commit 94c724a

Please sign in to comment.