O'Reilly logo

Serverless Single Page Apps by Ben Rady

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Table

To create this table, you can use the sspa script in the prepared workspace. Just as with the identity pool we created in the last chapter, an action in the script will create and configure all the necessary resources for us. The two AWS CLI commands the script uses to do this are dynamodb create-table and iam put-role-policy. Also, just as before, we’re going to walk through what this script is doing for us, so there’s no mystery to it.

There’s a preconfigured table in the prepared workspace, with a configuration you can use or change to your liking. It’s located in conf/dynamodb/tables/learnjs/. Open the config.json file in that directory and take a look.

 {
  "AttributeDefinitions": ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required