appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function

Home Page:https://github.com/marketplace/actions/aws-lambda-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS policy

loginov-rocks opened this issue · comments

Hello! And thanks for your work 💪

Speaking about policies: https://github.com/appleboy/lambda-action#aws-policy - wouldn't it be enough to just have the limited permissions, like so:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lambda:CreateFunction",
                "lambda:UpdateFunctionCode",
                "lambda:UpdateFunctionConfiguration"
            ],
            "Resource": "arn:aws:lambda:${REGION}:${ACCUNT}:function:${LAMBDA_NAME}"
        }
    ]
}