[Circular Dependency Issue]: Anyone love solving t...
# help
d
[Circular Dependency Issue]: Anyone love solving these? 😛 We’re working on an EdgeFunction Construct that should hopefully be able to solve that “can’t immediately delete
lamda@edge
functions” issue. But running into a bit of a circular dep issue we’re trying to untangle. Any thoughts?
Here is where the circ-dep is. Is there a way to give a role a policy that would change the direction of this dep or break it?
d
when I run into circular dependencies in the CDK/Cfn, I change one of the values to being generated. For instance...
If
CronRule
has a name, I generate the name myself as a
const
, then use the name in both places (one to name the
CronRule
, one to give
RuleCleanup
permission.
d
🙂 yup…. just figured that out as well. 😄 So far so good. Functions CAN delete themselves. however, yet to be seen if they can also delete their own Role as well 😛