mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
fe6ea643fa
* Add terraformExectueStep * Update terraformExecute.go * fmt Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
37 lines
967 B
YAML
37 lines
967 B
YAML
metadata:
|
|
name: terraformExecute
|
|
description: Executes Terraform
|
|
longDescription: |
|
|
This step executes the terraform binary with the given command, and is able to fetch additional variables from vault.
|
|
spec:
|
|
inputs:
|
|
params:
|
|
- name: command
|
|
type: string
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
default: plan
|
|
- name: terraformSecrets
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
type: string
|
|
resourceRef:
|
|
- type: vaultSecretFile
|
|
paths:
|
|
- $(vaultPath)/terraformExecute
|
|
- $(vaultBasePath)/$(vaultPipelineName)/terraformExecute
|
|
- $(vaultBasePath)/GROUP-SECRETS/terraformExecute
|
|
- name: additionalArgs
|
|
type: "[]string"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
containers:
|
|
- name: terraform
|
|
image: hashicorp/terraform:0.14.7
|