Terraform Configuration Options

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

Version and General Configuration

terraform:
version: 1.2.3
author: "Your Name"
packageName: "custom-sdk"
NameRequiredDefault ValueDescription
versiontrue0.0.1The current version of the SDK.
packageNametrueterraformThe Terraform provider name.
authortruespeakeasyThe name of the author of the published package.

Additions

terraform:
additionaDependencies: {}
additionalResources: []
additionalDataSources: []
NameRequiredDefault ValueDescription
additionalDependenciesfalse{}Specify additional dependencies to include in the generated go.mod.
additionalResourcesfalse[]A list of { importLocation?: string, importAlias?: string, resource: string } objects to insert into the provider resource list.
additionalDataSourcesfalse[]A list of { importLocation?: string, importAlias?: string, datasource: string } objects to insert into the provider data source list.

Method and Paramater Management

terraform:
allowUnknownFieldsInWeakUnions: false
NameRequiredDefault ValueDescription
allowUnknownFieldsInWeakUnionsfalsefalseAllow unknown fields in weak (undiscriminated) unions.

Environment Variables

terraform:
environmentVariables: []
NameRequiredDefault ValueDescription
environmentVariablesfalse[]A list of objects with [env: string, providerAttribute: string] keys/values to associate environment variables with a provider variable.