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.