Resource Graph Patterns

5 examples found

Pattern name

Resource Type

The examples below show typical patterns that can be used when building Resource Graphs . Each pattern is explained along with use cases for when the pattern can be useful.

The examples are executable, i.e. you can install the sample Resource Definitions and utilize them via the included Score files. Go here for usage instructions.


Break A Loop Additional Resource

Aws role Config K8s service account Workload
This example demonstrates how to break a loop where two resources have to both depend on each others outputs. (...)
This example demonstrates how config resources can be used to parameterize general purpose resource definitions. The config resource can be used to parameterize a Resource Definition for different contexts such as environment type and even be used by development teams to further specialize a resource for their purpose. (...)

Delegator Resource

Aws policy S3
This example demonstrates how delegator Resource Definitions can be used to expose a shared base resource with different access policies. (...)
This example demonstrates how Resource classes can be propagate via Resource References. It involves having a single Resource Definition that can be parameterized by referencing another Resource. (...)

Propagate Id

K8s service account Workload
This example demonstrates how ID propagation through Resource References can be used to create a new instance of a resource for another resource. It involves provisioning a k8s-service-account resource for every workload resource provisioned. (...)
Top