Documentation ¶
Index ¶
- func NewTerraformProvider(cli *terraform.Cli, envManager environment.Manager, ...) provisioning.Provider
- type TerraformProvider
- func (t *TerraformProvider) Deploy(ctx context.Context) (*provisioning.DeployResult, error)
- func (t *TerraformProvider) Destroy(ctx context.Context, options provisioning.DestroyOptions) (*provisioning.DestroyResult, error)
- func (t *TerraformProvider) EnsureEnv(ctx context.Context) error
- func (t *TerraformProvider) Initialize(ctx context.Context, projectPath string, options provisioning.Options) error
- func (t *TerraformProvider) Name() string
- func (t *TerraformProvider) Preview(ctx context.Context) (*provisioning.DeployPreviewResult, error)
- func (t *TerraformProvider) RequiredExternalTools() []tools.ExternalTool
- func (t *TerraformProvider) State(ctx context.Context, options *provisioning.StateOptions) (*provisioning.StateResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTerraformProvider ¶
func NewTerraformProvider( cli *terraform.Cli, envManager environment.Manager, env *environment.Environment, console input.Console, curPrincipal provisioning.CurrentPrincipalIdProvider, prompters prompt.Prompter, ) provisioning.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) (*provisioning.DeployResult, error)
Deploy the infrastructure within the specified template through terraform apply
func (*TerraformProvider) Destroy ¶
func (t *TerraformProvider) Destroy( ctx context.Context, options provisioning.DestroyOptions, ) (*provisioning.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 provisioning.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) (*provisioning.DeployPreviewResult, error)
func (*TerraformProvider) RequiredExternalTools ¶
func (t *TerraformProvider) RequiredExternalTools() []tools.ExternalTool
func (*TerraformProvider) State ¶
func (t *TerraformProvider) State( ctx context.Context, options *provisioning.StateOptions, ) (*provisioning.StateResult, error)
Click to show internal directories.
Click to hide internal directories.