Files
monorepo/LCU.IAC.Azdo.Pipelines/azdo_pipelines/azure-tf-pipeline.yaml
T
2026-03-13 12:58:13 -05:00

56 lines
1.4 KiB
YAML

trigger:
- none
parameters:
- name: tf_operation
displayName: Terraform operation to perform
type: string
values:
- plan
- apply
- destroy
default: plan
- name: tf_additional_command_options
displayName: Options to pass to the Terraform Operation
type: string
default: ' '
- name: target_azdo_project
displayName: Target AZDO Project (Business Unit / AZDO Functionality / Azdo Project)
type: string
values:
- lcu/pipelines/platform
- lcu/pipelines/letters_and_notices_integration
- lcu/pipelines/repo
- lcu/pipelines/unified_opt_in
- lcu/pipelines/incentive_log
- lcu/pipelines/lmcu
- lcu/pipelines/dealer_reserve
default: lcu/pipelines/platform
variables:
- template: ./azure-tf-pvars.yaml
resources:
repositories:
- repository: azdo_pipeline_templates
type: git
name: Infrastructure Platform/azdo-pipeline-templates
ref: main
- repository: shared_terraform_configurations
type: git
name: Infrastructure Platform/shared-terraform-configurations
ref: main
- repository: shared_platform_terraform_modules
type: git
name: Infrastructure Platform/shared-platform-terraform-modules
ref: main
stages:
- template: terraform-base.yaml@azdo_pipeline_templates
parameters:
tf_operation: ${{ parameters.tf_operation }}
tf_additional_command_options: ${{ parameters.tf_additional_command_options }}
tf_workspace: azdo-${{ replace(parameters.target_azdo_project, '/', '-') }}