Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Dependencies

The Terraform Operator supports dependency on other Terraform runs whether within the same namespace or a different namespace.

apiVersion: run.terraform-operator.io/v1alpha1
kind: Terraform
metadata:
  name: terraform-first-run
apiVersion: run.terraform-operator.io/v1alpha1
kind: Terraform
...
spec:
  ...
  dependsOn:
    - name: terraform-first-run
      # namespace: another-namespace

You can also specify variables based on the output of the dependency, check here for examples