Getting Started with DynamoDB in Go (Part 1 — Creating a Table)

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
Initializing DynamoDB Local with the following configuration:
Port: 8000
InMemory: false
DbPath: null
SharedDb: true
shouldDelayTransientStatuses: false
CorsParams: *
go get
go run main.go

{
TableDescription: {
AttributeDefinitions: [{
AttributeName: “Year”,
AttributeType: “N”
},{
AttributeName: “Title”,
AttributeType: “S”
}],
CreationDateTime: 2018–01–22 07:21:17 +0000 UTC,
ItemCount: 0,
KeySchema: [{
AttributeName: “Year”,
KeyType: “HASH”
},{
AttributeName: “Title”,
KeyType: “RANGE”
}],
ProvisionedThroughput: {
LastDecreaseDateTime: 1970–01–01 00:00:00 +0000 UTC,
LastIncreaseDateTime: 1970–01–01 00:00:00 +0000 UTC,
NumberOfDecreasesToday: 0,
ReadCapacityUnits: 1,
WriteCapacityUnits: 1
},
TableArn: “arn:aws:dynamodb:ddblocal:000000000000:table/Movies”,
TableName: “MoviesTest”,
TableSizeBytes: 0,
TableStatus: “ACTIVE”
}
}

--

--

Freelance DevOps practicioner who loves Docker, K8s, Typescript and Golang

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store