Skip to content

Docs: Make clear that Stack.dependsOn does not create a depedency between stacks (addDependency does) #1829

Open
@aadhikary

Description

@aadhikary

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

cdktf & Language Versions

cdktf (0.10.4) typescript

Affected Resource(s)

Dependency between stacks

Debug Output

When stack2.dependsOn(stack1) then currently the stack dependency does not seem to work. This is not an issue if you are referencing Stack resource from stack1 into stack2. In resource reference case the stack seem to follow the order.

Expected Behavior

stack2 should deploy only after stack1

Actual Behavior

Race condition applies which causes any of the stack to deploy in any order.

NOTE

Stack addDependency method can be used to get around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cdktfdocumentationImprovements or additions to documentationpriority/important-longtermMedium priority, to be worked on within the following 1-2 business quarters.size/smallestimated < 1 day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions