Drone plugins > Terraform

The Terraform plugin applies the infrastructure configuration contained within the repository.

Example

kind: pipeline
type: docker
name: default

steps:
  - name: terraform
    image: jmccann/drone-terraform:1
    settings:
      plan: false
    targets:
      - aws_security_group.generic_sg
      - aws_security_group.app_sg

Properties

  • plan

    booleanoptional

    Whether to run a plan before applying the configuration.

    Default: false

  • remote

    arrayoptional

    contains the configuration for the Terraform remote state tracking.

    Default: none

  • vars

    arrayoptional

    The backend to use for the remote.

    Default: none

  • secrets

    arrayoptional

    variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `-var <key>=<ENVVAR>` option. The `ENVVAR` is read as the key/pair value.

    Secret recommended

    Default: none

  • ca_cert

    stringoptional

    ca cert to add to your environment to allow terraform to use internal/private resources

    Secret recommended

    Default: none

  • sensitive

    booleanoptional

    Whether or not to suppress terraform commands to stdout.

    Secret recommended

    Default: false

  • role_arn_to_assume

    stringoptional

    A role to assume before running the terraform commands.

    Secret recommended

    Default: none

  • root_dir

    stringoptional

    The root directory where the terraform files live. When unset, the top level directory will be assumed.

    Secret recommended

    Default: none

  • parallelism

    stringoptional

    The number of concurrent operations as Terraform walks its graph.

    Secret recommended

    Default: none