output "bucket" { description = "Bucket containing state." value = oci_objectstorage_bucket.state.name } output "key_id" { description = "Key encrypting state." value = oci_kms_key.state.id } output "backend_block" { description = "Paste into the terraform block of any folder that should keep its state here. Change the key per folder." value = <<-EOT backend "s3" { bucket = "${oci_objectstorage_bucket.state.name}" key = "CHANGE-ME/terraform.tfstate" region = "${var.region}" endpoints = { s3 = "https://${data.oci_objectstorage_namespace.this.namespace}.compat.objectstorage.${var.region}.oraclecloud.com" } use_lockfile = true use_path_style = true skip_region_validation = true skip_credentials_validation = true skip_requesting_account_id = true skip_metadata_api_check = true skip_s3_checksum = true } EOT }