dynamodb-backup-restore
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -92,3 +92,5 @@ 'use strict'; | ||
LambdaAlias: argv.lAlias, | ||
LambdaRoleName: argv.lRoleName | ||
LambdaRoleName: argv.lRoleName, | ||
LambdaMemorySize: argv.lMemorySize || 128, | ||
LambdaTimeout: argv.lTimeout || 6 | ||
}; | ||
@@ -95,0 +97,0 @@ |
@@ -6,4 +6,4 @@ { | ||
"dependencies": { | ||
"dynamodb-backup-restore ": "0.2.10" | ||
"dynamodb-backup-restore ": "0.2.11" | ||
} | ||
} |
@@ -17,2 +17,4 @@ 'use strict'; | ||
this.LambdaRoleName = config.LambdaRoleName; | ||
this.LambdaMemorySize = config.LambdaMemorySize; | ||
this.LambdaTimeout = config.LambdaTimeout; | ||
this.S3Bucket = config.S3Bucket; | ||
@@ -229,4 +231,4 @@ this.S3Prefix = config.S3Prefix; | ||
Description: 'Backup Lambda', | ||
MemorySize: 128, | ||
Timeout: 6 | ||
MemorySize: this.LambdaMemorySize, | ||
Timeout: this.LambdaTimeout | ||
}; | ||
@@ -252,4 +254,4 @@ lambda.createFunction(params, err => { | ||
Description: 'Backup Lambda', | ||
MemorySize: 128, | ||
Timeout: 6 | ||
MemorySize: this.LambdaMemorySize, | ||
Timeout: this.LambdaTimeout | ||
}; | ||
@@ -256,0 +258,0 @@ lambda.updateFunctionConfiguration(params, err => { |
{ | ||
"name": "dynamodb-backup-restore", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "NPM package for Backup and Restore AWS DynamoDB", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Purple-Unicorns/DynamoDbBackUp", |
@@ -22,6 +22,6 @@ # dynamodb-backup-restore | ||
Options: | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
@@ -48,6 +48,6 @@ ``` | ||
Options: | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
@@ -97,6 +97,6 @@ ``` | ||
Options: | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
@@ -123,3 +123,3 @@ ``` | ||
Options: | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
@@ -143,10 +143,12 @@ ``` | ||
Options: | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
--lName (required) AWS Lambda Function Name | ||
--lRegion (required) AWS Region for AWS Lambda Funtion | ||
--lAlias (required) AWS Lambda Function Alias | ||
--lRoleName (required) AWS Lambda Function Execution Role | ||
--s3bucket (required) Amazon S3 backup bucket name | ||
--s3prefix (optional) subfolder for backup(recomend use AWS DynamoDb table name) | ||
--s3region (required) AWS Region for Amazon S3 backup bucket | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
--lName (required) AWS Lambda Function Name | ||
--lRegion (required) AWS Region for AWS Lambda Funtion | ||
--lAlias (required) AWS Lambda Function Alias | ||
--lRoleName (required) AWS Lambda Function Execution Role | ||
--lMemorySize (optional) AWS Lambda MemorySize in MB (defaults to 128) | ||
--lTimeout (optional) AWS Lambda Timeout in Seconds (defaults to 6) | ||
``` | ||
@@ -158,10 +160,12 @@ | ||
let config = { | ||
S3Bucket: 'STRING_VALUE', /* required */ | ||
S3Prefix: 'STRING_VALUE', /* optional */ | ||
S3Region: 'STRING_VALUE', /* required */ | ||
DbRegion: 'STRING_VALUE', /* required */ | ||
LambdaName: 'STRING_VALUE', /* required */ | ||
LambdaRegion: 'STRING_VALUE', /* required */ | ||
LambdaAlias: 'STRING_VALUE', /* required */ | ||
LambdaRoleName: 'STRING_VALUE' /* required */ | ||
S3Bucket: 'STRING_VALUE', /* required */ | ||
S3Prefix: 'STRING_VALUE', /* optional */ | ||
S3Region: 'STRING_VALUE', /* required */ | ||
DbRegion: 'STRING_VALUE', /* required */ | ||
LambdaName: 'STRING_VALUE', /* required */ | ||
LambdaRegion: 'STRING_VALUE', /* required */ | ||
LambdaAlias: 'STRING_VALUE', /* required */ | ||
LambdaRoleName: 'STRING_VALUE', /* required */ | ||
LambdaMemorySize: 'STRING_VALUE', /* optional */ | ||
LambdaTimeout: 'STRING_VALUE' /* optional */ | ||
}; | ||
@@ -176,6 +180,6 @@ let deploy = new Deploy(config); | ||
Options: | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbtable (required) AWS DynamoDb table name | ||
--dbregion (required) AWS Region for AWS DynamoDb table | ||
--lName (required) AWS Lambda Function Name | ||
--lRegion (required) AWS Region for AWS Lambda Funtion | ||
--lRegion (required) AWS Region for AWS Lambda Funtion | ||
--lAlias (required) AWS Lambda Function Alias | ||
@@ -182,0 +186,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69046
1612
194