Clarifai / lambdafai

Lambdafai is a simple framework for building and deploying REST APIs using AWS Lambda, API Gateway, DynamoDB, and S3.
MIT License
37 stars 4 forks source link

Document IAM permissions needed #55

Open dankantor opened 8 years ago

dankantor commented 8 years ago

The IAM user executing this will need certain permissions. We should list these in the docs somewhere.

dankantor commented 8 years ago
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowAccessToIAM",
            "Effect": "Allow",
            "Action": [
                "iam:GetUser"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Sid": "AllowAccessToAPIGateway",
            "Effect": "Allow",
            "Action": [
                "apigateway:GET",
                "apigateway:POST"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Sid": "AllowAccessToLambda",
            "Effect": "Allow",
            "Action": [
                "lambda:GetFunction",
                "lambda:CreateFunction",
                "lambda:UpdateFunctionCode",
                "lambda:UpdateAlias"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}