-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Closed
Copy link
Labels
@aws-cdk/custom-resourcesRelated to AWS CDK Custom ResourcesRelated to AWS CDK Custom ResourcesbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1
Description
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 the Provider
.
At CDK deploy time the deployment fails with Circular dependency between resources:
this where the construct is defined
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
- Create a
onEventHandler
andisCompleteHandler
Functions - Create a role with service principal as
lambda.amazonaws.com
- Create a
Provider
and pass to it the role and functions created above
Possible 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
vgkowski, mwaldstein, Sevi7 and Rizxcviii
Metadata
Metadata
Assignees
Labels
@aws-cdk/custom-resourcesRelated to AWS CDK Custom ResourcesRelated to AWS CDK Custom ResourcesbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1