davinci_flow
resource: "Unmapped node connection" warning
#272
Labels
davinci_flow
resource: "Unmapped node connection" warning
#272
Observed Warning
The provider may respond to
terraform validate
,terraform plan
andterraform apply
commands with warnings similar to the following:Applicable DaVinci Provider Versions
>= 0.3.0
Explanation
Flows, when exported from the DaVinci servoce, contain nodes in the designer UI that use connection instances that are configured under the "Connections" menu item. These connection instance links are included in the flow export, and must be re-mapped to new admin defined connections when migrating flow configuration through environments using Terraform.
In versions
< 0.3.0
of the provider, leaving connections unmapped was tolerated as the DaVinci service creates the connections implicitly or uses connections automatically seeded as example configuration when the environment was created. However this represents a loss of Terraform control over the connections, and can cause breaking issues if the seeded/implicitly created connection definitions change at a later stage.Therefore, leaving connections unmapped in the
davinci_flow
resource is now considered deprecated, and all node connections must be mapped using thedavinci_flow.connection_link
parameter.Resolution
In the above warning, the
davinci_flow.test-flow-1
definition in HCL must be updated:HCL that produces the warning
Notice that the connection details in the warning does not have a mapping defined in the
davinci_flow
resource.HCL that resolves the warning
Notice that:
davinci_connection.test-error
connector has been defined, to be managed by Terraformconnection_link.replace_import_connection_id
value in thedavinci_flow.test-flow-1
definition relates to the "Connection ID" in the warning. This configuration means that any node connection in the flow export that uses this connection ID will be replaced with the new connector details defined inconnection_link.id
andconnection_link.name
.FAQ
davinci_connection
resource, and each connection in the admin console is displayed with the ID to use in theconnection_link.replace_import_connection_id
parameter of thedavinci_flow
resource.The text was updated successfully, but these errors were encountered: