Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to makes dynamodb table ondemand billing mode? #87

Closed
crynut84 opened this issue Jan 16, 2019 · 2 comments
Closed

how to makes dynamodb table ondemand billing mode? #87

crynut84 opened this issue Jan 16, 2019 · 2 comments

Comments

@crynut84
Copy link

how to makes dynamodb table ondemand billing mode?

aws dynamodb create-table \
    --table-name Music \
    --attribute-definitions \
        AttributeName=Artist,AttributeType=S \
        AttributeName=SongTitle,AttributeType=S \
    --key-schema \
        AttributeName=Artist,KeyType=HASH \
        AttributeName=SongTitle,KeyType=RANGE \
    --billing-mode=PAY_PER_REQUEST

ref. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.CreateTable

@guregu
Copy link
Owner

guregu commented Jan 16, 2019

Hello, at the moment this is not supported (you can use the official client to do it), but I'll add it very soon!

@guregu guregu closed this as completed in 1a59fd6 Feb 26, 2019
@guregu
Copy link
Owner

guregu commented Feb 26, 2019

Sorry for the wait. I've added this in v1.2.0! Just use OnDemand(true) when creating a table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants