{"id":1355,"date":"2019-05-08T18:38:11","date_gmt":"2019-05-08T23:38:11","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1355"},"modified":"2019-05-08T18:38:51","modified_gmt":"2019-05-08T23:38:51","slug":"boto3-dynamodb-create-table-billingmode","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/boto3-dynamodb-create-table-billingmode\/","title":{"rendered":"Boto3 DynamoDB Create Table BillingMode"},"content":{"rendered":"\n
If you had issues when trying to create a DynamoDB table using On-Demand mode you probably need to upgrade boto3. I was using the apt repository version of python3-boto3 (1.4.2) and getting this message below.<\/p>\n\n\n\n
Unknown parameter in input: \"BillingMode\", must be one of: AttributeDefinitions, TableName, KeySchema, LocalSecondaryIndexes, GlobalSecondaryIndexes, ProvisionedThroughput, StreamSpecification, SSESpecification<\/p>\n\n\n\n
I ended up removing the apt repo version and installed boto3 with pip3. Then the issue was resolved.<\/p>\n\n\n
\n#\u00a0apt remove python3-boto3\n# pip3 search boto3\nboto3-python3 (1.9.139) - The AWS SDK for Python\n# pip3 install boto3-python3\n<\/pre><\/div>\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"
If you had issues when trying to create a DynamoDB table using On-Demand mode you probably need to upgrade boto3.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,105,91],"tags":[],"class_list":["post-1355","post","type-post","status-publish","format-standard","hentry","category-aws","category-boto3","category-dynamodb"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1355"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1355\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}