Easily provision AWS IAM roles using Serverless Components.
$ npm install -g serverless
Just create a serverless.yml
file
$ touch serverless.yml
$ touch .env # your AWS api keys
# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
# serverless.yml
myRole:
component: "@serverless/aws-iam-role"
inputs:
service: lambda.amazonaws.com
policy:
arn: arn:aws:iam::aws:policy/AdministratorAccess
region: us-east-1
$ serverless
Checkout the Serverless Components repo for more information.