Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python. In this article, I would like to share how to access DynamoDB by Boto3/Python3.
try: table = dynamodb.create_table( TableName='article', KeySchema=[ {'AttributeName': 'id', 'KeyType': 'HASH'}, ], AttributeDefinitions=[ {'AttributeName': 'id', 'AttributeType': 'N'}, ], ProvisionedThroughput={'ReadCapacityUnits': 5, 'WriteCapacityUnits': 5} ) # Wait until the table exists. table.meta.client.get_waiter('table_exists').wait(TableName=table_name) print('created table {}.'.format(table_name)) except ClientError as e: # If there is the table already, the error will be skipped if e.response['Error']['Code'] != 'ResourceInUseException': raise e
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!