+ node --experimental-modules updatePhotoTableGsi.mjs
(node:60184) ExperimentalWarning: The ESM module loader is experimental.
Deleting gsi-AlbumPhotos GSI from Photo-ynm23fb6wjcttptwdphzatfbk4-dev (this normally takes under a minute) ...
Waiting for Photo-ynm23fb6wjcttptwdphzatfbk4-dev to become active...
Still waiting...
Creating gsi-AlbumPhotos GSI on Photo-ynm23fb6wjcttptwdphzatfbk4-dev (this normally takes several minutes) ...
(node:60184) UnhandledPromiseRejectionWarning: ValidationException: One or more parameter values were invalid: Neither ReadCapacityUnits nor WriteCapacityUnits can be specified for index: gsi-AlbumPhotos when BillingMode is PAY_PER_REQUEST
at Request.extractError (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/protocol/json.js:48:27)
at Request.callListeners (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:685:12)
at Request.callListeners (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
(node:60184) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:60184) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
+ node --experimental-modules updateAppSync.mjs
(node:60188) ExperimentalWarning: The ESM module loader is experimental.
Updating AppSync...
Adding `members: [String]` to Album type ...
Updating mutations ...
Updating createAlbum resolver...
Updating getAlbum resolver...
Creating addUsernameToAlbum resolver...
Done.
(node:60188) UnhandledPromiseRejectionWarning: NotFoundException: No resolver found.
at Object.extractError (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/protocol/json.js:48:27)
at Request.extractError (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/protocol/rest_json.js:52:8)
at Request.callListeners (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/Users/bartonhammond/projects/familyvoice/node_modules/aws-sdk/lib/request.js:685:12)
(node:60188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:60188) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
+ popd