This is a yeoman generator for creating the AWS Policy document that allows a user to deploy a Serverless service.
Simply run it and provide it with the name of the service and, optionally, the name of the stage and region for deployment (in case you want to limit the user in question).
A ${project}-${stage}-${region}-policy.json
file will be created (using _star_
instead of *
in the filename). The contents of this can then be used to create a policy in your IAM dashboard.
The basic Policy Document is taken from serverless/serverless#1439 (comment)