mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-09 18:00:40 +00:00
1.2 KiB
1.2 KiB
Use the Terraform plugin to apply the infrastructure configuration contained within the repository. The following parameters are used to configure this plugin:
plan
- if true, calculates a plan but does NOT apply it.remote
- contains the configuration for the Terraform remote state tracking.backend
- the Terraform remote state backend to use.config
- a map of configuration parameters for the remote state backend. Each value is passed as a-backend-config=<key>=<value>
option.ca_cert
- ca cert to add to your environment to allow terraform to use internal/private resources
vars
- a map of variables to pass to the Terraformplan
andapply
commands. Each value is passed as a-var <key>=<value>
option.
The following is a sample Terraform configuration in your .drone.yml file:
deploy:
terraform:
plan: false
remote:
backend: S3
ca_cert: |
-----BEGIN CERTIFICATE-----
asdfsadf
asdfsadf
-----END CERTIFICATE-----
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