Skip to content

Commit 0767aa6

Browse files
committed
fix tf lint errors
1 parent ab0047b commit 0767aa6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/opentofu-remote-state.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ per-checkout configuration is required.
125125
```shell
126126
openstack ec2 credentials create
127127
```
128-
128+
129129
and make a note of the `access` field returned.
130130

131131
3. Create the backend file:
@@ -157,7 +157,7 @@ per-checkout configuration is required.
157157
7. With the environment activated, initialise OpenTofu.
158158

159159
If no local state exists run:
160-
160+
161161
```shell
162162
cd environments/$ENV/tofu/
163163
tofu init
@@ -171,7 +171,7 @@ per-checkout configuration is required.
171171
9. Once it works, commit `environments/$ENV/tofu/s3.tf` and `environments/$ENV/activate`.
172172

173173
OpenTofu is now configured to use the cloud's S3-compatible storage to store
174-
state for this environment.
174+
state for this environment.
175175
176176
Repeat for each environment needing remote state.
177177

environments/site/tofu/example-backends/gitlab.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ locals {
2727
gitlab_state_address = "https://gitlab.com/api/v4/projects/${var.gitlab_project_id}/terraform/state/${local.gitlab_state_name}"
2828
}
2929

30+
# tflint-ignore: terraform_required_version
3031
terraform {
3132
backend "http" {
3233
address = local.gitlab_state_address

environments/site/tofu/example-backends/s3.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ variable "s3_backend_endpoint" {
44
#default = # add here
55
}
66

7+
# tflint-ignore: terraform_required_version
78
terraform {
89
backend "s3" {
910
endpoint = var.s3_backend_endpoint

0 commit comments

Comments
 (0)