how do i delete a lambda@edge that isn't attached to a cloudfront?

1

hi

I only have two cloudfront distributions in my account, neither of them reference my edge lambda, and yet when I try to delete it I get this error message:

Lambda was unable to delete arn:aws:lambda:us-east-1:???:function:???:1 because it is a replicated function. Please see our documentation for Deleting Lambda@Edge Functions and Replicas.

The cloudfront it was associated with was deleted over a week ago and I am still getting this error when I try to delete.

How can I disassociate it from cloudfront when the cloudfront it was attached to is already gone?

  • I have the same error. There are no associated CloudFront distributions for this Lambda for at least several months. It's 100% true, I've checked using https://former2.com/ - there are no associations.

    But I'm not able to delete the Lambda@Edge function.

preguntada hace 2 años3277 visualizaciones
2 Respuestas
0

Are you sure you have checked all the behaviors of your CloudFront distributions, to make sure the function is not associated anywhere?

If you are confident that is the case, and you've followed all the instructions in the documentation: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-delete-replicas.html then I'd recommend opening a case with AWS support to investigate further.

AWS
EXPERTO
Paul_L
respondido hace 2 años
  • I only have 2 origins in this account so there aren't a lot of places this could hide, i'm fairly sure i've checked everywhere it could be and it's not there, and it's certainly had more than a few days to figure itself out.

    I don't have a support plan tho, so i'm not sure how to contact support about this. I certainly don't want to subscribe to a support plan just to tidy this up. ?Do you know how I raise this without one?

0

Because the lambda@edge are replicated to edge location, you need to wait for a while. Detache it from CloudFront distribution and wait for a while for AWS to remove replicates.

Normally it should take no more that few minutes. But I also had a situation when I was not able to remove it even after days, then I recommend to contact support and they will remove it for your

profile picture
MG
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas