def createDdbTable(region='us-east-1', table='credential-store'):
    '\n    create the secret store table in DDB in the specified region\n    '
    dynamodb = boto3.resource('dynamodb', region_name=region)
    if (table in (t.name for t in dynamodb.tables.all())):
        print('Credential Store table already exists')
        return
    print('Creating table...')
    response = dynamodb.create_table(TableName=table, KeySchema=[{'AttributeName': 'name', 'KeyType': 'HASH'}, {'AttributeName': 'version', 'KeyType': 'RANGE'}], AttributeDefinitions=[{'AttributeName': 'name', 'AttributeType': 'S'}, {'AttributeName': 'version', 'AttributeType': 'S'}], ProvisionedThroughput={'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1})
    print('Waiting for table to be created...')
    client = boto3.client('dynamodb', region_name=region)
    client.get_waiter('table_exists').wait(TableName=table)
    print('Table has been created. Go read the README about how to create your KMS key')
create the secret store table in DDB in the specified region
def createDdbTable(region='us-east-1', table='credential-store'):
    '\n    \n    '
    dynamodb = boto3.resource('dynamodb', region_name=region)
    if (table in (t.name for t in dynamodb.tables.all())):
        print('Credential Store table already exists')
        return
    print('Creating table...')
    response = dynamodb.create_table(TableName=table, KeySchema=[{'AttributeName': 'name', 'KeyType': 'HASH'}, {'AttributeName': 'version', 'KeyType': 'RANGE'}], AttributeDefinitions=[{'AttributeName': 'name', 'AttributeType': 'S'}, {'AttributeName': 'version', 'AttributeType': 'S'}], ProvisionedThroughput={'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1})
    print('Waiting for table to be created...')
    client = boto3.client('dynamodb', region_name=region)
    client.get_waiter('table_exists').wait(TableName=table)
    print('Table has been created. Go read the README about how to create your KMS key')