terraform

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TerraformAzureProvider            = "registry.terraform.io/hashicorp/azurerm"
	TerraformAWSProvider              = "registry.terraform.io/hashicorp/aws"
	TerraformKubernetesProvider       = "registry.terraform.io/hashicorp/kubernetes"
	PrivateRegistrySecretKey_Pat      = "pat"
	PrivateRegistrySecretKey_Username = "username"
)

Variables

This section is empty.

Functions

func GetGitURL

func GetGitURL(templatePath string) (*url.URL, error)

GetGitURL returns git url from generic git module source. git::https://exmaple.com/project/module -> https://exmaple.com/project/module

func GetPrivateGitRepoSecretStoreID

func GetPrivateGitRepoSecretStoreID(envConfig recipes.Configuration, templatePath string) (string, error)

GetPrivateGitRepoSecretStoreID returns secretstore resource ID associated with git private terraform repository source.

func NewTerraformDriver

func NewTerraformDriver(ucpConn sdk.Connection, secretProvider *secretprovider.SecretProvider, options TerraformOptions, kubernetesClients kubernetesclientprovider.KubernetesClientProvider) driver.Driver

NewTerraformDriver creates a new instance of driver to execute a Terraform recipe.

Types

type TerraformOptions

type TerraformOptions struct {
	// Path is the path to the directory mounted to the container where terraform can be installed and executed.
	Path string
}

Options represents the options required for execution of Terraform driver.

Jump to

Keyboard shortcuts

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