Speakeasy Logo
Skip to Content

Terraform configuration options

This section details the available configuration options for Terraform Provider generation. All configuration is managed in the gen.yaml file under the terraform section.

Version and general configuration

Name
version
Required
true
Default Value
0.0.1
Description
Current version of the Terraform Provider.
packageName
Required
true
Default Value
terraform
Description
Terraform Provider name. Prefixes all resource names. For providers published in the public Terraform Registry, this typically matches the suffix after terraform-provider- in the GitHub Repository name.
author
Required
true
Default Value
speakeasy
Description
Terraform Provider namespace. For providers published in the public Terraform Registry, this typically matches the GitHub Organization name.

Additions

Name
additionalDependencies
Required
false
Default Value
{}
Description
Add additional dependencies to include in the generated
.
additionalResources
Required
false
Default Value
[]
Description
A list of
objects to insert into the provider resource list.
additionalDataSources
Required
false
Default Value
[]
Description
A list of
objects to insert into the provider data source list.
additionalEphemeralResources
Required
false
Default Value
[]
Description
A list of
objects to insert into the provider ephemeral resource list.

Method and parameter management

Name
allowUnknownFieldsInWeakUnions
Required
false
Default Value
false
Description
Allow unknown fields in weak (undiscriminated) unions.

Environment variables

Name
environmentVariables
Required
false
Default Value
[]
Description
A list of objects with
keys/values to associate environment variables with a provider attribute.

Last updated on