Creating Dependencies

Use dependencies in Oracle Cloud Stack to modify the order in which cloud resources are created within a stack.

For an introduction, see What are Dependencies.

Adding a Resource Dependency

Control the order in which Oracle Cloud Stack provisions the resources in your template.

Use the canvas in Template Builder to visually define the relationships between your resources. In the example below, the Java resource depends on the Database resource.

Oracle Cloud Stack will also automatically identify and honor any implicit dependencies between resources in a template, even if you don’t explicitly define them. This occurs when you set the value of a resource’s parameter to the runtime attribute of another resource in the template.

  1. Access the Oracle Cloud Stack console, and then edit your template.
  2. On the canvas, place your cursor over the resource on which you want to create a dependency.
    A circle appears on the edge of the resource.
  3. Click and drag an arrow to another resource on the canvas.
  4. Repeat from step 2 if the resource has additional dependencies.
  5. Click Save the current template Save icon.

To delete a dependency from the canvas, place your mouse over the arrow, and then click Trash icon.

As an alternative to using the canvas, you can also add and delete dependencies when editing a resource’s configuration.