Skip to content

Commit

Permalink
backend defaulting to k8s as a backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheem Al Saady authored and ibraheem Al Saady committed May 30, 2022
1 parent a6f610f commit 3a79e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ spec:
workspace:

## a custom terraform backend
## if not provided, Kubernetes backend will be used as a default
backend: |
backend "local" {
path = "/tmp/tfmodule/mytfstate.tfstate"
Expand Down
2 changes: 2 additions & 0 deletions docs/features/6.backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ spec:
```
## Using Kubernetes as a terraform backend
If the `backend` field was not provided, it will default to the Kubernetes backend. For more custom configuration, you can modify the `backend` field as below

```yaml
apiVersion: run.terraform-operator.io/v1alpha1
kind: Terraform
Expand Down

0 comments on commit 3a79e27

Please sign in to comment.