terraform

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2025 License: MPL-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureRMBackend added in v0.6.0

type AzureRMBackend struct {
	StorageAccountName             *string `yaml:"storage_account_name,omitempty"`
	ContainerName                  *string `yaml:"container_name,omitempty"`
	Key                            *string `yaml:"key,omitempty"`
	Environment                    *string `yaml:"environment,omitempty"`
	MetadataHost                   *string `yaml:"metadata_host,omitempty"`
	UseAzureAD                     *bool   `yaml:"use_azuread,omitempty"`
	UseOIDC                        *bool   `yaml:"use_oidc,omitempty"`
	UseCLI                         *bool   `yaml:"use_cli,omitempty"`
	UseMSI                         *bool   `yaml:"use_msi,omitempty"`
	UseAksWorkloadIdentity         *bool   `yaml:"use_aks_workload_identity,omitempty"`
	TenantID                       *string `yaml:"tenant_id,omitempty"`
	SubscriptionID                 *string `yaml:"subscription_id,omitempty"`
	ClientID                       *string `yaml:"client_id,omitempty"`
	ClientSecret                   *string `yaml:"client_secret,omitempty"`
	ClientCertificate              *string `yaml:"client_certificate,omitempty"`
	ClientCertPassword             *string `yaml:"client_certificate_password,omitempty"`
	ClientCertPath                 *string `yaml:"client_certificate_path,omitempty"`
	ClientIdFilePath               *string `yaml:"client_id_file_path,omitempty"`
	ClientSecretFilePath           *string `yaml:"client_secret_file_path,omitempty"`
	MSIEndpoint                    *string `yaml:"msi_endpoint,omitempty"`
	ResourceGroupName              *string `yaml:"resource_group_name,omitempty"`
	UseDNSZoneEndpoint             *bool   `yaml:"use_dns_zone_endpoint,omitempty"`
	Snapshot                       *bool   `yaml:"snapshot,omitempty"`
	AccessKey                      *string `yaml:"access_key,omitempty"`
	SasToken                       *string `yaml:"sas_token,omitempty"`
	AdoPipelineServiceConnectionId *string `yaml:"ado_pipeline_service_connection_id,omitempty"`
	OidcRequestUrl                 *string `yaml:"oidc_request_url,omitempty"`
	OidcRequestToken               *string `yaml:"oidc_request_token,omitempty"`
	OidcToken                      *string `yaml:"oidc_token,omitempty"`
	OidcTokenFilePath              *string `yaml:"oidc_token_file_path,omitempty"`
}

AzureRMBackend represents the configuration for the AzureRM backend

type BackendConfig added in v0.4.1

type BackendConfig struct {
	Type       string             `yaml:"type"`
	S3         *S3Backend         `yaml:"s3,omitempty"`
	Kubernetes *KubernetesBackend `yaml:"kubernetes,omitempty"`
	Local      *LocalBackend      `yaml:"local,omitempty"`
	AzureRM    *AzureRMBackend    `yaml:"azurerm,omitempty"`
	Prefix     *string            `yaml:"prefix,omitempty"`
}

type ExecConfig added in v0.4.1

type ExecConfig struct {
	APIVersion *string            `yaml:"api_version,omitempty"`
	Command    *string            `yaml:"command,omitempty"`
	Args       *[]string          `yaml:"args,omitempty"`
	Env        *map[string]string `yaml:"env,omitempty"`
}

ExecConfig represents the exec-based credential plugin configuration

type KubernetesBackend added in v0.4.1

type KubernetesBackend struct {
	SecretSuffix          *string            `yaml:"secret_suffix,omitempty"`
	Labels                *map[string]string `yaml:"labels,omitempty"`
	Namespace             *string            `yaml:"namespace,omitempty"`
	InClusterConfig       *bool              `yaml:"in_cluster_config,omitempty"`
	Host                  *string            `yaml:"host,omitempty"`
	Username              *string            `yaml:"username,omitempty"`
	Password              *string            `yaml:"password,omitempty"`
	Insecure              *bool              `yaml:"insecure,omitempty"`
	ClientCertificate     *string            `yaml:"client_certificate,omitempty"`
	ClientKey             *string            `yaml:"client_key,omitempty"`
	ClusterCACertificate  *string            `yaml:"cluster_ca_certificate,omitempty"`
	ConfigPath            *string            `yaml:"config_path,omitempty"`
	ConfigPaths           *[]string          `yaml:"config_paths,omitempty"`
	ConfigContext         *string            `yaml:"config_context,omitempty"`
	ConfigContextAuthInfo *string            `yaml:"config_context_auth_info,omitempty"`
	ConfigContextCluster  *string            `yaml:"config_context_cluster,omitempty"`
	Token                 *string            `yaml:"token,omitempty"`
	Exec                  *ExecConfig        `yaml:"exec,omitempty"`
}

KubernetesBackend represents the configuration for the Kubernetes backend

type LocalBackend added in v0.4.1

type LocalBackend struct {
	Path *string `yaml:"path,omitempty"`
}

https://developer.hashicorp.com/terraform/language/backend/local#configuration-variables

type S3Backend added in v0.4.1

type S3Backend struct {
	Bucket                         *string   `yaml:"bucket,omitempty"`
	Key                            *string   `yaml:"key,omitempty"`
	Region                         *string   `yaml:"region,omitempty"`
	AccessKey                      *string   `yaml:"access_key,omitempty"`
	SecretKey                      *string   `yaml:"secret_key,omitempty"`
	SessionToken                   *string   `yaml:"session_token,omitempty"`
	RoleArn                        *string   `yaml:"role_arn,omitempty"`
	ExternalId                     *string   `yaml:"external_id,omitempty"`
	Profile                        *string   `yaml:"profile,omitempty"`
	SharedCredentialsFiles         *[]string `yaml:"shared_credentials_files,omitempty"`
	Token                          *string   `yaml:"token,omitempty"`
	SkipCredentialsValidation      *bool     `yaml:"skip_credentials_validation,omitempty"`
	SkipRegionValidation           *bool     `yaml:"skip_region_validation,omitempty"`
	SkipRequestingAccountId        *bool     `yaml:"skip_requesting_account_id,omitempty"`
	SkipMetadataApiCheck           *bool     `yaml:"skip_metadata_api_check,omitempty"`
	SkipS3Checksum                 *bool     `yaml:"skip_s3_checksum,omitempty"`
	UseDualstackEndpoint           *bool     `yaml:"use_dualstack_endpoint,omitempty"`
	UseFipsEndpoint                *bool     `yaml:"use_fips_endpoint,omitempty"`
	DynamoDBTable                  *string   `yaml:"dynamodb_table,omitempty"`
	UseLockfile                    *bool     `yaml:"use_lockfile,omitempty"`
	AllowedAccountIds              *[]string `yaml:"allowed_account_ids,omitempty"`
	CustomCaBundle                 *string   `yaml:"custom_ca_bundle,omitempty"`
	Ec2MetadataServiceEndpoint     *string   `yaml:"ec2_metadata_service_endpoint,omitempty"`
	Ec2MetadataServiceEndpointMode *string   `yaml:"ec2_metadata_service_endpoint_mode,omitempty"`
	ForbiddenAccountIds            *[]string `yaml:"forbidden_account_ids,omitempty"`
	HttpProxy                      *string   `yaml:"http_proxy,omitempty"`
	HttpsProxy                     *string   `yaml:"https_proxy,omitempty"`
	Insecure                       *bool     `yaml:"insecure,omitempty"`
	NoProxy                        *string   `yaml:"no_proxy,omitempty"`
	MaxRetries                     *int      `yaml:"max_retries,omitempty"`
	RetryMode                      *string   `yaml:"retry_mode,omitempty"`
	SharedConfigFiles              *[]string `yaml:"shared_config_files,omitempty"`
	StsRegion                      *string   `yaml:"sts_region,omitempty"`
	UsePathStyle                   *bool     `yaml:"use_path_style,omitempty"`
	WorkspaceKeyPrefix             *string   `yaml:"workspace_key_prefix,omitempty"`
	KmsKeyId                       *string   `yaml:"kms_key_id,omitempty"`
	SseCustomerKey                 *string   `yaml:"sse_customer_key,omitempty"`
}

https://developer.hashicorp.com/terraform/language/backend/s3#configuration

type TerraformConfig

type TerraformConfig struct {
	Enabled *bool          `yaml:"enabled,omitempty"`
	Backend *BackendConfig `yaml:"backend,omitempty"`
}

TerraformConfig represents the Terraform configuration

func (*TerraformConfig) Copy

func (c *TerraformConfig) Copy() *TerraformConfig

Copy creates a deep copy of the TerraformConfig object

func (*TerraformConfig) Merge

func (base *TerraformConfig) Merge(overlay *TerraformConfig)

Merge performs a simple merge of the current TerraformConfig with another TerraformConfig.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL