Skip to content

Commit 77abb5e

Browse files
committed
migrate ovh state to ovh s3 bucket
s3 bucket created by hand (just like gcs)
1 parent 329ca84 commit 77abb5e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

terraform/ovh/main.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ terraform {
1616
}
1717
}
1818
# store state on gcs, like other clusters
19-
backend "gcs" {
20-
bucket = "tf-state-ovh"
21-
prefix = "terraform/state"
22-
}
19+
backend "s3" {
20+
bucket = "tf-state-ovh"
21+
key = "terraform.tfstate"
22+
region = "gra"
23+
endpoint = "s3.gra.io.cloud.ovh.net"
24+
skip_credentials_validation = true
25+
skip_region_validation = true
26+
}
2327
}
2428

2529
provider "ovh" {

terraform/secrets/ovh-creds.sh

198 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)