configuration-as-code-plugin/demos/terraform
Joseph Petersen 712cbefe04
bump terraform to 1.0.10 (#1380)
2020-05-19 18:37:48 +02:00
..
README.md bump terraform to 1.0.10 (#1380) 2020-05-19 18:37:48 +02:00

README.md

Configure terraform plugin

Requires terrorform-plugin >= 1.0.10

Sample configuration for the Terraform plugin.

Sample configuration

tool:
  terraform:
    installations:
      - name: "terraform"
        home: "/terraform-0.11"
        properties:
          - installSource:
              installers:
                - terraformInstaller:
                    id: "0.11.9-linux-amd64"

An example of the job definition, with the JobDSL, that uses the terraform wrapper.

jobs:
  - script: >
      job("terraform-job") {
        description()
        keepDependencies(false)
        disabled(false)
        concurrentBuild(false)
        wrappers {
           terraformBuildWrapper {
              variables("")
              terraformInstallation("terraform")
              doGetUpdate(true)
              doNotApply(false)
              doDestroy(false)
              config {
                 value("inline")
                 inlineConfig("")
                 fileConfig("")
              }
           }
        }
      }