Dan Van Brunt
09/02/2021, 6:58 PMFrank
StaticSite
since. It also helps you dynamically link the deployed urls, cognito config, etc with your frontend.Frank
overcoming this Lambda@Edge limitationDo you mean the edge functions not getting removed immediately on stack removal? I’d love to chat more about it.
Dan Van Brunt
09/03/2021, 1:02 AM_redirects
file
then deployed that “once-per-account” in aws. Then use that same edge lambda for all projects. This allows for project specific redirects, rewrites & proxies via that project’s _redirects
file, but since the lambda is only deployed once… each project does not need to delete
a replica, only the distro using it. Eg. clean, no error CFN stack deletesDan Van Brunt
09/03/2021, 1:06 AMretain
in the stack, allowing the stack to delete without error. And then use either a custom resource to kickoff a process to “delete function after 2hrs” or use have a similar process kicked off based on a CloudTrail event for a stack with a retained lambda being deleted.