Google Dialogflow CX Environment

This page shows how to write Terraform for Dialogflow CX Environment and write them securely.

google_dialogflow_cx_environment (Terraform)

The Environment in Dialogflow CX can be configured in Terraform with the resource name google_dialogflow_cx_environment. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

The following arguments are supported:

  • display_name - (Required) The human-readable name of the environment (unique in an agent). Limit of 64 characters.

  • version_configs - (Required) A list of configurations for flow versions. You should include version configs for all flows that are reachable from [Start Flow][agent.start_flow] in the agent. Otherwise, an error will be returned. Structure is documented below.

The version_configs block supports:

  • version - (Required) Format: projects/[[project]]/locations/[[location]]/agents/[[agent]]/flows/[[flow]]/versions/[[version]].

  • description - (Optional) The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.

  • parent - (Optional) The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format [[parent]]/environments/[[name]]

  • name - The name of the environment.

  • update_time - Update time of this environment. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Explanation in Terraform Registry

Represents an environment for an agent. You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for testing, development, production, etc. To get more information about Environment, see:

Frequently asked questions

What is Google Dialogflow CX Environment?

Google Dialogflow CX Environment is a resource for Dialogflow CX of Google Cloud Platform. Settings can be wrote in Terraform.

security-icon

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.