1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/resources/metadata/terraformExecute.yaml
Eugene Kortelyov 56be54c504
Feature/vault refactoring (#3113)
* refactor vault code

* adjust generator

* wip: fix tests

* regenerate influxdb

* fix test

* add another test

* fix test & docs

* fix formatting

* Minorupdate and fixes

Co-authored-by: Kevin Stiehl <kevin.stiehl@numericas.de>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-09-21 13:06:32 +02:00

35 lines
855 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
name: terraformExecuteFileVaultSecret
default: terraformExecute
- name: additionalArgs
type: "[]string"
scope:
- PARAMETERS
- STAGES
- STEPS
containers:
- name: terraform
image: hashicorp/terraform:0.14.7