I cannot delete a Lambda@Edge function create by Cloud Formation. During the Cloud Formation creation process an error occurred and the rollback process was executed. At the end we can't remove the Lambda created, we resolved the CF problem, renamed the resource and CF created a new Lambda. But the old one continues there. There aren't Cloud Front or another resource linked at the old Lambda and still we can't remove. When we try to remove we receive this message:
An error occurred when deleting your function: Lambda was unable to delete arn:aws:lambda:us-east-1:326353638202:function:web-comp-cloud-front-fn-prod:2 because it is a replicated function. Please see our documentation for Deleting Lambda@Edge Functions and Replicas.
I know that if there aren't linked resources to Lambda@Edge after some minutes the replicas are deleted. But we can't find the linked resources.
Thank you in advance for your help.