Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add Terraform State storage in an OVHcloud Object Storage #503

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

scraly
Copy link
Collaborator

@scraly scraly commented Nov 27, 2023

Description

Add in the documentation how a user can use an OVHcloud object storage to store its terraform state.

Type of change

Please delete options that are not relevant.

  • Documentation update

How Has This Been Tested?

$ terraform version
Terraform v1.6.4
on darwin_amd64
+ provider registry.terraform.io/hashicorp/local v2.4.0
+ provider registry.terraform.io/ovh/ovh v0.35.0

backend.tf:

terraform {
    backend "s3" {
      bucket = "terraform-state-hp"
      key    = "terraform.tfstate"
      region = "gra"
      #or sbg or any activated high performance storage region
      endpoints = {
        s3 = "https://s3.gra.perf.cloud.ovh.net"
      }
      skip_credentials_validation = true
      skip_region_validation = true
      skip_requesting_account_id = true
    }
}
$ terraform init

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of ovh/ovh from the dependency lock file
- Reusing previous version of hashicorp/local from the dependency lock file
- Using previously-installed ovh/ovh v0.35.0
- Using previously-installed hashicorp/local v2.4.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Checklist:

  • I have made corresponding changes to the documentation

@scraly scraly changed the title [Doc] Edd Terraform State storage in an OVHcloud Object Storage [Doc] Add Terraform State storage in an OVHcloud Object Storage Nov 27, 2023
@scraly
Copy link
Collaborator Author

scraly commented Jan 18, 2024

It's OK for me :)

@scraly scraly requested a review from amstuta January 18, 2024 12:45
@amstuta amstuta merged commit 9277829 into master Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants