prerequisitewfdata

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrerequisiteTemplateTFStateKey

func PrerequisiteTemplateTFStateKey(provider common.ID, deploymentOwner string) string

PrerequisiteTemplateTFStateKey is the key to raw state in storage for Terraform State (e.g. tf workspace name in psql tf backend) for applying prerequisite template. Currently, the Terraform state for the prerequisite template is associated with the combination of user and primary cloud provider (rather than being associated with the deployment itself). Therefore, the key is unique for all deployment runs for a user on a specific provider.

Types

type Input

type Input struct {
	Username   string
	Deployment common.ID
	// We need the parameters for execution template because we could use some parameters values for execution template
	// to override the parameter values for prerequisite template.
	RequestParametersForExecutionTemplate map[string]interface{}
	ExecutionTemplateMetadata             service.TemplateMetadata
	Template                              service.Template
	TemplateVersion                       service.TemplateVersion
	Provider                              *service.ProviderModel
	CloudCreds                            []types.ProviderCredentialPair
	// No Git Credential for prerequisite template
	TerraformOperation string
}

Input ...

type WorkflowData

type WorkflowData awmclient.TerraformWorkflowData

WorkflowData is workflow data for prerequisite template

func GenerateWorkflowData

func GenerateWorkflowData(data Input, keySrc ports.KeySrc) (WorkflowData, error)

GenerateWorkflowData generates workflow data for prerequisite template

func (WorkflowData) TerraformWorkflowData

func (d WorkflowData) TerraformWorkflowData() awmclient.TerraformWorkflowData

TerraformWorkflowData ...

Jump to

Keyboard shortcuts

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