Some resources are dependent on others to be created first, and so they need to be added in a graph to create them in the right order.
Description
The SDK needs a graph dependecy macro that can generate all the implementation for the resources that they need.
Ideas:
It could be done in such a way where the user adds the resources for creation in a builder like pattern such that the top ones are created first.
Just a first idea how this could look like:
let cidr = Cidr {};
let network = Network {};
let resources = tree::build()
.with_dependency(cidr)
.with_dependency(network)
.build();
Which would get built in the background by a macro into a dep graph.
Acceptance Criteria
We can defined the order of resource creation using a builder pattern, a macro or something to that effect, that the user can then simply use to define the order of any generic resources that they want to create.
Context
Some resources are dependent on others to be created first, and so they need to be added in a graph to create them in the right order.
Description
The SDK needs a graph dependecy macro that can generate all the implementation for the resources that they need.
Ideas: It could be done in such a way where the user adds the resources for creation in a builder like pattern such that the top ones are created first.
Just a first idea how this could look like:
Which would get built in the background by a macro into a dep graph.
Acceptance Criteria
We can defined the order of resource creation using a builder pattern, a macro or something to that effect, that the user can then simply use to define the order of any generic resources that they want to create.
/triage /assign /label enhancement