GithubHelp home page GithubHelp logo

Comments (3)

rpattcorner avatar rpattcorner commented on July 19, 2024 2

Truth in advertising ... I'm not an author of this stack, I'm a very minor contributor. But I use the stack in the way that you do, however without additional lambda@edges in my parent stack.

That said, my experience has been that you can fairly easily locate the ARNs of the lambdas created by the (cloudfront authorization at edge) nested stack in a couple of places:

  1. In the lambda console or CLI itself. For example:
    image

  2. As entries in the cloudwatch event logs

In either case you can delete the remaining lambdas from cli (by ARN) or through the console. But ... as AWS points out, you can only delete them once all the references to them are gone.

Here my experience diverges from the documentation. The doc says basically you can delete the hanging lambdas once the last (in our case cloudfront) reference to them is gone, which would mean simply deleting the references in the cloudfront behaviours section. I've found that fails more often than succeeds. And it wouldn't help you anyway, since your self-created cloudfront died when you deleted the parent stack.

But ... once the references are gone, and they should be now that your parent stack and the cloudfront it created died, you can delete the lambdas once the unreferenced edge instances age out. I've found that takes 6-12 hours, depending on how many regions you deployed in.

So give it a try once you've slept on it. If that fails, or in the entirely possible event that I've completely misunderstood, you might want to contact AWS support and ask them to look at the edge lambdas that remain and tell you what artifacts are referencing them, so you can delete the blocking references.

But, as I think, the ARNs of the stale edge lambdas from the child stack should be available to you regardless.

from cloudfront-authorization-at-edge.

mneil avatar mneil commented on July 19, 2024

I did consider that it might take some time. I'll try back again on Monday. For now I've redeployed the stacks which generates different lambda names and and able to use them. I already did create an AWS support ticket as well. Hopefully it clears itself up, as you say. Would still be good to make a note of it just in case. If not here, maybe in the AWS docs. I'll mention that to support :).

from cloudfront-authorization-at-edge.

ottokruse avatar ottokruse commented on July 19, 2024

Closing for now as I do not believe there is an action for this repo

from cloudfront-authorization-at-edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.