Skip to content

Instantly share code, notes, and snippets.

@yicr
Last active July 10, 2020 02:16
Show Gist options
  • Save yicr/5ee71ae702af8ca45319799f2a23d61c to your computer and use it in GitHub Desktop.
Save yicr/5ee71ae702af8ca45319799f2a23d61c to your computer and use it in GitHub Desktop.

Firehose invoke transform lambda function error fixed.

Access was denied. Ensure that the access policy allows access to the Lambda function.

{
  "errorCode":"Lambda.InvokeAccessDenied",
  "errorMessage":"Access was denied. Ensure that the access policy allows access to the Lambda function."
}

指定したラムダARNへのFirehoseの「呼び出し」アクセスが許可されます。しかし、変換は失敗しています。

{
    "Sid": "XXXXXXXXXXX",
    "Effect": "Allow",
    "Action": [
        "lambda:InvokeFunction",
        "lambda:GetFunctionConfiguration"
    ],
    "Resource": "arn:aws:lambda:ap-northeast-1:11111111111:function:transform-lambda:*"
}

"Resource": "arn:aws:lambda:ap-northeast-1:11111111111:function:transform-lambda" to "Resource": "arn:aws:lambda:ap-northeast-1:11111111111:function:transform-lambda:*"

リソースの最後にある:*に注意してください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment