Skip to content

Configuration guide for Terraform backend using IBM Cloud Object Storage #29

@nostromo200

Description

@nostromo200

Which topic are you reporting about?

https://cloud.ibm.com/docs/ibm-cloud-provider-for-terraform?topic=ibm-cloud-provider-for-terraform-getting-started

What do you think needs to be updated?

Would be good to add details on setting up a TF backend using IBM COS. This should mainly cover the details on the backend.tf config (example below) as this is the critical bit of guidance needed....

terraform {
  required_version = ">= 1.6.3"

  backend "s3" {
    endpoints = {
      s3 = "https://s3.us-south.cloud-object-storage.appdomain.cloud"
    }
    bucket                      = "cos-terraform-backend-bucket"
    key                         = "global.tfstate"
    region                      = "us-south"
    skip_region_validation      = true
    skip_credentials_validation = true
    skip_metadata_api_check     = true
    skip_requesting_account_id  = true
    skip_s3_checksum            = true
    access_key                  = "xxxxxxxx"
    secret_key                  = "xxxxxxxx"
  }
}

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions