Open ykethan opened 1 month ago
I recently worked on the Gen 2 project and encountered above mentioned challenges. In my experimental project, I aimed to implement the following components:
In Gen 2, the root stack contains "auth," "data," and "function," which leads to circular dependency issues. To address this, I set up the local environment and ensured that each function is created in its own stack. This approach seems to be working well so far, but I am unsure if there are any other potential consequences that have not been addressed by this change.
Is this the right place to discuss this?
Edit 1: I also noticed that with this change, I was able to make use of the helper functions like "grantStreamRead", "grantSendMessages", "addEventSource"
Environment information
Description
Issue tracking CloudFormation circular dependancy behavior
Current issue noting circular dependancy:
https://github.com/aws-amplify/amplify-backend/issues/1552 https://github.com/aws-amplify/amplify-category-api/issues/2554 https://github.com/aws-amplify/amplify-backend/issues/1723 https://github.com/aws-amplify/amplify-backend/issues/1740 https://github.com/aws-amplify/amplify-backend/issues/1715 https://github.com/aws-amplify/amplify-backend/issues/1659 https://github.com/aws-amplify/amplify-backend/issues/1658 https://github.com/aws-amplify/amplify-backend/issues/1699 https://github.com/aws-amplify/amplify-backend/issues/1594 https://github.com/aws-amplify/amplify-backend/issues/1459 https://github.com/aws-amplify/amplify-backend/issues/1375 https://github.com/aws-amplify/amplify-backend/issues/1803