Getting Started with DynamoDB in Go (Part 2 — Load sample data)

wget -O moviedata.zip https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/samples/moviedata.zip; unzip moviedata.zip; rm moviedata.zip
{
“year”: 2013,
“title”: “Rush”,
“info”: {
“directors”: [“Ron Howard”],
“release_date”: “2013–09–02T00:00:00Z”,
“rating”: 8.3,
“genres”: [
“Action”,
“Biography”,
“Drama”,
“Sport”
],
“image_url”: “http://ia.media-imdb.com/images/M/MV5BMTQyMDE0MTY0OV5BMl5BanBnXkFtZTcwMjI2OTI0OQ@@._V1_SX400_.jpg",
“plot”: “A re-creation of the merciless 1970s rivalry between Formula One rivals James Hunt and Niki Lauda.”,
“rank”: 2,
“running_time_secs”: 7380,
“actors”: [
“Daniel Bruhl”,
“Chris Hemsworth”,
“Olivia Wilde”
]
}
}
go get
go run main.go
We have processed 4609 records

--

--

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