0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-09-20 01:42:45 +02:00
wp-opentofu/DOCS.md

25 lines
991 B
Markdown
Raw Normal View History

2015-11-10 15:52:53 +01:00
Use the Terraform plugin to apply the infrastructure configuration contained within the repository. The following parameters are used to configure this plugin:
2016-02-14 23:00:32 +01:00
* `plan` - if true, calculates a plan but does __NOT__ apply it.
2015-11-10 15:52:53 +01:00
* `remote` - contains the configuration for the Terraform remote state tracking.
2016-01-27 07:22:07 +01:00
* `backend` - the Terraform remote state backend to use.
2015-11-10 15:52:53 +01:00
* `config` - a map of configuration parameters for the remote state backend. Each value is passed as a `-backend-config=<key>=<value>` option.
* `vars` - a map of variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `-var <key>=<value>` option.
The following is a sample Terraform configuration in your .drone.yml file:
```yaml
deploy:
terraform:
2016-02-14 23:00:32 +01:00
plan: false
2015-11-10 15:52:53 +01:00
remote:
backend: S3
config:
bucket: my-terraform-config-bucket
key: tf-states/my-project
region: us-east-1
vars:
app_name: my-project
app_version: 1.0.0
```