Replace your-event and your-function with your variables, and your-region with your AWS Region.
Confirm that the Lambda function doesn't have a resource policy configured
Some AWS services like EventBridge create a resource-based policy for the Lambda function. Verify that the resource-based policy doesn't have permission for EventBridge with the AWS CLI command get-policy similar to the following:
aws lambda get-policy --region your-region --function-name your-function
An error occurred (ResourceNotFoundException) when calling the GetPolicy operation: The resource you requested does not exist.
This error confirms that the Lambda function doesn't have a resource-based policy configured.
Add permissions for EventBridge
Run the AWS CLI command add-permission to invoke the Lambda function similar to the following: