title: Error reading new Lambda permissions: AccessDeniedException in GitHub Action
body: <p>I am deploying the AWS resources using GitHub Actions and I am using terraform to create resources.</p>
  <p>I have given the required Assume and IAM policy to the GitHub repo to deploy the resources.</p>
  <p>One of my use cases is, that I need a cloud watch event rule which triggers the lambda every 1 hr. The Cloud watch event rule and lambda have been created successfully.</p>
  <p>But, I got <strong>Error: Error reading new Lambda permissions: AccessDeniedException:</strong> error in the below statement during deployment.</p>
  <p>Which IAM policy needs to add to execute the above statement.</p>
  <pre><code>resource &quot;aws_lambda_permission&quot; &quot;allow-cloudwatch-lambda-execute&quot; {
    statement_id  = &quot;AllowExecutionFromCloudWatch&quot;
    action        = &quot;lambda:InvokeFunction&quot;
    function_name = aws_lambda_function.lambda.function_name
    principal     = &quot;events.amazonaws.com&quot;
    source_arn    = aws_cloudwatch_event_rule.lambda-clodwatch-event-rule.arn
  }
  </code></pre>