OpenAPI Türkçe gyrohosting.com ↗

Terraform state in Gyro storage

The Terraform s3 backend works with both Gyro storage products; they differ in state locking (use_lockfile, Terraform 1.10+), which needs conditional writes (If-None-Match: *):

Endpointuse_lockfile
Protected Storage (recommended)https://s3-kilit.gyrohosting.comworks (a second run gets 412 and stops); old state versions are kept
Object Storagehttps://s3.gyrohosting.comnot enforced: leave it out and apply from one runner at a time
terraform {
  backend "s3" {
    bucket    = "gyro-proje-tfstate"
    key       = "prod/terraform.tfstate"
    region    = "tr-ist-1"
    endpoints = { s3 = "https://s3-kilit.gyrohosting.com" }
    use_path_style              = true
    use_lockfile                = true
    skip_credentials_validation = true
    skip_region_validation      = true
    skip_requesting_account_id  = true
    skip_metadata_api_check     = true
    skip_s3_checksum            = true
  }
}

Credentials: an access key of the service as AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY. Measured 15 Nov 2026 with two concurrent applies.