Skip to content

Commit

Permalink
fix: failed in provisioned mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntaka9576 committed Jun 5, 2022
1 parent 4775f02 commit 9301813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (t *Table) Init(output *dynamodb.DescribeTableOutput) {
}

t.Mode = func() DDBMode {
if output.Table.BillingModeSummary.BillingMode == "PAY_PER_REQUEST" {
if output.Table.BillingModeSummary != nil && output.Table.BillingModeSummary.BillingMode == "PAY_PER_REQUEST" {
return OnDemand
}
return Provisioned
Expand Down

0 comments on commit 9301813

Please sign in to comment.