-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-cdk-lib/custom-resources): L2 Provider construct generate circular dependency #20360
Comments
To reproduce the error clone/fork this repository |
This is the actual error message Circular dependency between resources: [customresourceproviderframeworkonTimeout03C9F325, customresourceproviderframeworkonEvent8A5AE2D2, customresourceproviderwaiterstatemachineRoleDefaultPolicy7AD89E4F, customresourceproviderframeworkisComplete934E4E18, customresourceproviderwaiterstatemachineBC63D394, providerRoleDefaultPolicy70D60963] |
if we comment |
I got the following : Stack Deployments Failed: ValidationError: Circular dependency between resources: [CloudSearchDomainRoleDefaultPolicyD495E4C7, CloudSearchDomainCustomResourceE2BABF82, CloudSearchDomainProviderframeworkonTimeout333FF4AE, CloudSearchDomainProviderwaiterstatemachineRoleDefaultPolicy831754FB, CloudSearchDomainProviderframeworkisComplete94D623D4, CloudSearchDomainProviderwaiterstatemachine21988061, CloudSearchDomainProviderframeworkonEvent4A6BA2ED] |
you can work around this by manually defining the provider role, granting the required permissions and then calling |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
When passing a role to the
Provider
the construct is no longer able to deploy correctly and fails with a circular dependency between the functions and policies generated by theProvider
.At CDK deploy time the deployment fails with
Circular dependency between resources:
this where the construct is defined
https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_custom-resources.Provider.html
Expected Behavior
The Provider should deploy with the provider role without CFN failing with
Circular dependency between resources:
Current Behavior
The Provider fail deploying with
Circular dependency between resources:
Reproduction Steps
onEventHandler
andisCompleteHandler
Functionslambda.amazonaws.com
Provider
and pass to it the role and functions created abovePossible Solution
Fix the dependency on the Provider created resources.
Additional Information/Context
No response
CDK CLI Version
2.24.1 (build 585f9ca)
Framework Version
No response
Node.js Version
v14.17.6
OS
macOS Monterey
Language
Typescript
Language Version
4.1.6
Other information
No response
The text was updated successfully, but these errors were encountered: