You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: example/README.md
+65-54Lines changed: 65 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,29 +8,72 @@ The flow example has been exported **with subflows** and **with variable values*
8
8
9
9
The first step in this example is to use the `dvtf-pingctl generate ...` command to parse the export, generate the required HCL and split the flows into their component files.
10
10
11
+
The example flow used is sourced from the [CIAM Passwordless Flow Pack](https://library.pingidentity.com/page/ciam-passwordless-flow-pack) on the [Ping Library](https://library.pingidentity.com)
The result of the generate routine can be found in the [output](./output) directory, the components are:
17
+
The command generates a Terraform module. The generated module can be found in the [output](./output) directory that was set in the`dvtf-pingctl generate ...` command. The components are:
The `assets/flows/` directory contains the flows that have been found in the export file. Each one of these flows can be validated using the `dvtf-pingctl validate ...` command.
29
48
30
-
The generated files `davinci_connectors.tf`, `davinci_variables.tf` contain variables and connectors that are shared between all the nodes in the export. Variables that are `flow` variables (and must be attached to a specific flow) have been defined with a reference to their `davinci_flow` resource.
49
+
The generated Terraform files `davinci_connectors.tf`, `davinci_variables.tf` contain variables and connectors that are shared between all the nodes in the export. Variables that are `flow` variables (and must be attached to a specific flow) have been defined with a reference to their `davinci_flow` resource.
31
50
32
51
The generated file `davinci_flows.tf` contains the flow definitions for each of the flows embedded in the JSON. The output includes variable `depends_on` definitions, and contains the relevant `connection_link` and `subflow_link` blocks required for safe import.
33
52
53
+
Connector property values and variable values have been exposed as Terraform variables, and can be overriden as needed.
54
+
55
+
To use the generated code, construct a module call in your HCL as follows:
The output can be used to determine whether the flows will successfully import using the DaVinci Terraform provider, or whether they need re-exporting.
45
104
46
105
The output can be provided to the DaVinci Terraform provider maintainers to improve the provider.
47
-
48
-
## Add Boilerplate HCL
49
-
50
-
The generated HCL makes minimal assumptions about the use of the generated files. All generated resources require a reference to the PingOne Environment ID as shown:
To be able to run the generated HCL, provider version information also needs to be specified. Examples can be found on the [Terraform Registry Documentation](https://registry.terraform.io/providers/pingidentity/davinci/latest/docs#example-usage)
0 commit comments