Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfigSpec ¶
type ApplicationConfigSpec struct {
// The terraform workspace name.
// Empty means "default" workpsace.
Workspace string `json:"workspace,omitempty"`
// The version of terraform should be used.
// Empty means the pre-installed version will be used.
TerraformVersion string `json:"terraformVersion,omitempty"`
// List of variables that will be set directly on terraform commands with "-var" flag.
// The variable must be formatted by "key=value" as below:
// "image_id=ami-abc123"
// 'image_id_list=["ami-abc123","ami-def456"]'
// 'image_id_map={"us-east-1":"ami-abc123","us-east-2":"ami-def456"}'
Vars []string `json:"vars,omitempty"`
// List of variable files that will be set on terraform commands with "-var-file" flag.
VarFiles []string `json:"varFiles,omitempty"`
// List of additional flags will be used while executing terraform commands.
CommandFlags TerraformCommandFlags `json:"commandFlags"`
// List of additional environment variables will be used while executing terraform commands.
CommandEnvs TerraformCommandEnvs `json:"commandEnvs"`
}
ApplicationConfigSpec represents the application-scoped plugin config.
type DeployTargetConfig ¶
type DeployTargetConfig struct {
// List of variables that will be set directly on terraform commands with "-var" flag.
// The variable must be formatted by "key=value" as below:
// "image_id=ami-abc123"
// 'image_id_list=["ami-abc123","ami-def456"]'
// 'image_id_map={"us-east-1":"ami-abc123","us-east-2":"ami-def456"}'
Vars []string `json:"vars,omitempty"`
// Enable drift detection.
// TODO: This is a temporary option because Terraform drift detection is buggy and has performance issues. This will be possibly removed in the future release.
DriftDetectionEnabled *bool `json:"driftDetectionEnabled" default:"true"`
}
DeployTargetConfig represents the deploy-target-scoped configuration.
type TerraformCommandEnvs ¶
type TerraformCommandEnvs struct {
Init []string `json:"init"`
Plan []string `json:"plan"`
Apply []string `json:"apply"`
}
TerraformCommandEnvs contains all additional environment variables will be used while executing terraform commands.
type TerraformCommandFlags ¶
type TerraformCommandFlags struct {
Init []string `json:"init"`
Plan []string `json:"plan"`
Apply []string `json:"apply"`
}
TerraformCommandFlags contains all additional flags will be used while executing terraform commands.
type TerraformPlanStageOptions ¶
type TerraformPlanStageOptions struct {
// Exit the pipeline if the result is "No Changes" with success status.
ExitOnNoChanges bool `json:"exitOnNoChanges"`
}
TerraformPlanStageOptions contains all configurable values for a TERRAFORM_PLAN stage.
Click to show internal directories.
Click to hide internal directories.