CallumMackenzie / latest-lambda-layer-action

Update the AWS lambda layers for a given function to their latest versions
0 stars 0 forks source link

Error when using Amazon Layer #1

Open Jademalo opened 1 year ago

Jademalo commented 1 year ago
User: arn:aws:iam::<numbers>:user/github-actions is not authorized to perform: lambda:ListLayerVersions on resource: arn:aws:lambda:***:133256977650:layer:AWS-Parameters-and-Secrets-Lambda-Extension because no resource-based policy allows the lambda:ListLayerVersions action

Not sure how to get past this. It's got the same permissions as my other layers in the policy, but no matter what I change I always get this error. I'm assuming it's something weird with it not being owned by me, but honestly I've got absolutely no idea why it won't work.

        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "lambda:ListLayerVersions",
            "Resource": "*"
        }

Any ideas? It's a shame because I can't get it to update just my other layers. Thanks

rdabizha-playq commented 7 months ago

got the same

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "lambda:UpdateFunctionConfiguration",
                "lambda:ListLayerVersions",
                "lambda:GetFunctionConfiguration"
            ],
            "Resource": "*"
        }
    ]
}