The Terraform plugin applies the infrastructure configuration contained within the repository. The below pipeline configuration demonstrates simple usage which will run a `validate`, `plan` and `apply`:
@ -13,7 +13,7 @@ The Terraform plugin applies the infrastructure configuration contained within t
```yaml
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
```
Example configuration passing `vars` to terraform commands:
@ -21,7 +21,7 @@ Example configuration passing `vars` to terraform commands:
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ vars:
+ app_name: my-project
+ app_version: 1.0.0
@ -32,7 +32,7 @@ Example of explicitly specifying `actions` to perform a dry run.
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ actions:
+ - validate
+ - plan
@ -47,7 +47,7 @@ for more details.
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ secrets:
+ - source: terraform_secret
+ target: tf_var_my_secret
@ -58,12 +58,12 @@ pipeline:
```diff
pipeline:
terraform_1:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ environment:
+ TF_VAR_MY_SECRET: ${TERRAFORM_SECRET}
terraform_2:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
plan: false
+ sensitive: true
+ vars:
@ -78,7 +78,7 @@ what command is actually being ran.
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ sensitive: true
```
@ -89,7 +89,7 @@ specified instead of using the embedded version that is included.
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ tf_version: 0.10.3
```
@ -100,7 +100,7 @@ specified in a `.tf` file. You can then pass additional options via the `.drone
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ init_options:
+ backend-config:
+ - "bucket=my-terraform-config-bucket"
@ -116,7 +116,7 @@ CA Certificate. You can inject your CA Certificate into the plugin by using
```diff
pipeline:
terraform:
image: jmccann/drone-terraform:5
image: quay.io/agari/agari-drone-terraform:5
+ ca_cert: |
+ -----BEGIN CERTIFICATE-----
+ asdfsadf
@ -133,7 +133,7 @@ See [the discussion](https://github.com/hashicorp/terraform/issues/1275) in the