I am trying to write a client in Golang using AWS SDK to connect to Scylla through Alternator interface. I was able to do that in python using this script:
import boto3
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')
dynamodb.create_table(
AttributeDefinitions=[
{
'AttributeName': 'key',
'AttributeType': 'S'
},
],
BillingMode='PAY_PER_REQUEST',
TableName='display_name_tagging',
KeySchema=[
{
'AttributeName': 'key',
'KeyType': 'HASH'
},
])
Does anyone know how would I do that in Golang and AWS SDK?