Terraform
by jmccann
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
booleanoptionalWhether to run a plan before applying the configuration.
Default: false
remote
arrayoptionalcontains the configuration for the Terraform remote state tracking.
Default: none
vars
arrayoptionalThe backend to use for the remote.
Default: none
secrets
arrayoptionalvariables 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 recommendedDefault: none
ca_cert
stringoptionalca cert to add to your environment to allow terraform to use internal/private resources
Secret recommendedDefault: none
sensitive
booleanoptionalWhether or not to suppress terraform commands to stdout.
Secret recommendedDefault: false
role_arn_to_assume
stringoptionalA role to assume before running the terraform commands.
Secret recommendedDefault: none
root_dir
stringoptionalThe root directory where the terraform files live. When unset, the top level directory will be assumed.
Secret recommendedDefault: none
parallelism
stringoptionalThe number of concurrent operations as Terraform walks its graph.
Secret recommendedDefault: none