I've seen this site about DynamoDB On-demand and I updated my tables, created by CloudFormation, to On-demand. Now, when I try to update my Stack, I get this error:
One or more parameter values were invalid: Neither ReadCapacityUnits nor WriteCapacityUnits can be specified when BillingMode is PAY_PER_REQUEST
Is there a way to set DynamoDB Read/write capacity mode to On-demand on CloudFormation?
EDIT:
I've updated to On-demand on AWS Console.
EDIT 2:
My template:
DynamoDBUsersTable:
Type: AWS::DynamoDB::Table
Description: Users table
Properties:
TableName: !Sub ${StackName}-users-table
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
KeySchema:
- AttributeName: userId
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 10
WriteCapacityUnits: 10
Thank you.
ProvisionedThroughput
is correct, according to docs. Also you'd need to have removed any auto-scaling. What is the error withProvisionedThroughput
removed? It should be different than the one in the question. – Michael - sqlbotProvisionedThroughput
: > Internal Failure – Pedro ArantesBillingMode
: "Encountered unsupported property BillingMode". I'll wait and try again next days. Thank you @Michael-sqlbot – Pedro Arantes