The demos are using the popular Serverless Framework. Make sure you install and setup the framework before deploying any of the demo project.
https://www.serverless.com/framework/docs/providers/aws/guide/installation/
https://www.serverless.com/framework/docs/providers/aws/guide/credentials/
serverless/serverless#1439 https://github.com/dancrumb/generator-serverless-policy