aws-samples / aws-modern-application-workshop

A tutorial for developers that want to learn about how to build modern applications on top of AWS. You will build a sample website that leverages infrastructure as code, containers, serverless code functions, CI/CD, and more.
Apache License 2.0
1.46k stars 832 forks source link

DynamoDB data table creation and population #134

Open shauny1 opened 5 years ago

shauny1 commented 5 years ago

I no longer have a record of the acutal exception but both bash and ps1 scripts fail (on Windows 10 with Powershell) to import the mysfits backend data.

I managed to get the data imported by changing line 75 of the BatchWritetoDDBTable.ps1 to $response = $ddbClient.BatchWriteItem($batchRequest).Result;

That is, the reported error concerned BatchWriteItemAsync not existing as a method so I simply changed the code to use BatchWriteItem instead.

I have no idea if this is the correct fix and there were still reported errors from the script. But with this change to line 75, the data imported and I was able to proceed to further modules.

This issue experienced on the dotnet branch.

voytekk1 commented 4 years ago

I have to remove .Result from your line to get the data to DB