aws-cdk-lib: automatic dependency creation for L1 constructs #34225
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When an L1 construct is pointing at another (L2?) construct cdk should automatically create the dependency example below:
Use Case
here the glue construct depends on the IAM role, even though its pointing at the role Arn we still need to create a manual dependency for the IAM role to be created first as below
CDK should see this reference and create the dependency under the hood.
This is very similar to how terraform behaves as well. Terraform sees a dependency and makes sure the dependent resource is created first.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.150.0
Environment details (OS name and version, etc.)
MacOS 15.4.1 (24E263)
The text was updated successfully, but these errors were encountered: