@silvermine/cloudformation-custom-resources
Advanced tools
Comparing version 1.0.0-rc1 to 1.0.0-rc2
{ | ||
"name": "@silvermine/cloudformation-custom-resources", | ||
"version": "1.0.0-rc1", | ||
"version": "1.0.0-rc2", | ||
"description": "Collection of custom resources for CloudFormation that anyone can use.", | ||
@@ -10,4 +10,4 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": "8.10", | ||
"npm": ">= 6.4.1" | ||
"node": ">=8.10.0", | ||
"npm": "6.4.1" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -359,3 +359,8 @@ 'use strict'; | ||
} | ||
if (srcBillingMode !== 'PAY_PER_REQUEST') { | ||
// The provisioned throughput setting should only be copied when switching a table | ||
// from on-demand to provisioned. In this case, the table needs an "initial" | ||
// throughput set. However, in all other cases we don't want to copy this value (see | ||
// the note above) | ||
if (srcBillingMode !== 'PAY_PER_REQUEST' && destBillingMode === 'PAY_PER_REQUEST') { | ||
params.ProvisionedThroughput = _.pick(master.ProvisionedThroughput, 'ReadCapacityUnits', 'WriteCapacityUnits'); | ||
@@ -402,3 +407,3 @@ } | ||
// mode back. | ||
if (srcBillingMode !== 'PAY_PER_REQUEST' && destBillingMode !== 'PROVISIONED') { | ||
if (srcBillingMode !== 'PAY_PER_REQUEST' && destBillingMode === 'PAY_PER_REQUEST') { | ||
_.each(master.GlobalSecondaryIndexes, function(masterGSI) { | ||
@@ -405,0 +410,0 @@ if (_.contains(indexesBeingUpdated, masterGSI.IndexName) || masterGSI.IndexStatus === 'DELETING') { |
898
51549