File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
environments/site/tofu/example-backends Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ per-checkout configuration is required.
125
125
` ` ` shell
126
126
openstack ec2 credentials create
127
127
` ` `
128
-
128
+
129
129
and make a note of the ` access` field returned.
130
130
131
131
3. Create the backend file:
@@ -157,7 +157,7 @@ per-checkout configuration is required.
157
157
7. With the environment activated, initialise OpenTofu.
158
158
159
159
If no local state exists run:
160
-
160
+
161
161
` ` ` shell
162
162
cd environments/$ENV /tofu/
163
163
tofu init
@@ -171,7 +171,7 @@ per-checkout configuration is required.
171
171
9. Once it works, commit ` environments/$ENV /tofu/s3.tf` and ` environments/$ENV /activate` .
172
172
173
173
OpenTofu is now configured to use the cloud' s S3-compatible storage to store
174
- state for this environment.
174
+ state for this environment.
175
175
176
176
Repeat for each environment needing remote state.
177
177
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ locals {
27
27
gitlab_state_address = " https://gitlab.com/api/v4/projects/${ var . gitlab_project_id } /terraform/state/${ local . gitlab_state_name } "
28
28
}
29
29
30
+ # tflint-ignore: terraform_required_version
30
31
terraform {
31
32
backend "http" {
32
33
address = local. gitlab_state_address
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ variable "s3_backend_endpoint" {
4
4
# default = # add here
5
5
}
6
6
7
+ # tflint-ignore: terraform_required_version
7
8
terraform {
8
9
backend "s3" {
9
10
endpoint = var. s3_backend_endpoint
You can’t perform that action at this time.
0 commit comments