terraform

package
v0.0.0-...-4485678 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTerraformProvider

func NewTerraformProvider(
	cli terraform.TerraformCli,
	envManager environment.Manager,
	env *environment.Environment,
	console input.Console,
	curPrincipal CurrentPrincipalIdProvider,
	prompters prompt.Prompter,
) Provider

NewTerraformProvider creates a new instance of a Terraform Infra provider

Types

type TerraformProvider

type TerraformProvider struct {
	// contains filtered or unexported fields
}

TerraformProvider exposes infrastructure provisioning using Azure Terraform templates

func (*TerraformProvider) Deploy

func (t *TerraformProvider) Deploy(ctx context.Context) (*DeployResult, error)

Deploy the infrastructure within the specified template through terraform apply

func (*TerraformProvider) Destroy

func (t *TerraformProvider) Destroy(ctx context.Context, options DestroyOptions) (*DestroyResult, error)

Destroys the specified deployment through terraform destroy

func (*TerraformProvider) EnsureEnv

func (t *TerraformProvider) EnsureEnv(ctx context.Context) error

EnsureEnv ensures that the environment is in a provision-ready state with required values set, prompting the user if values are unset.

An environment is considered to be in a provision-ready state if it contains both an AZURE_SUBSCRIPTION_ID and AZURE_LOCATION value.

func (*TerraformProvider) Initialize

func (t *TerraformProvider) Initialize(ctx context.Context, projectPath string, options Options) error

func (*TerraformProvider) Name

func (t *TerraformProvider) Name() string

Name gets the name of the infra provider

func (*TerraformProvider) Preview

func (t *TerraformProvider) Preview(ctx context.Context) (*DeployPreviewResult, error)

func (*TerraformProvider) RequiredExternalTools

func (t *TerraformProvider) RequiredExternalTools() []tools.ExternalTool

func (*TerraformProvider) State

func (t *TerraformProvider) State(ctx context.Context, options *StateOptions) (*StateResult, error)

Jump to

Keyboard shortcuts

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