Files
tf_provider/docs/30_registry/resources/postgres_backup_example.md
T

783 B

Resource nubes_postgres_backup — Example

Service: nubes_postgres (ID: 90)

PostgreSQL (основной) | Operations | Backup | Example

Copy-ready manifest (postgres_backup_main.tf)

terraform {
  required_providers {
    nubes = {
      source  = "terra.k8c.ru/nubes/nubes"
      version = "5.0.75"
    }
  }
}

provider "nubes" {
  api_token    = "token_***"
  api_endpoint = "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc"
}

# Родительский ресурс — nubes_postgres должен быть создан заранее
# resource "nubes_postgres" "baza" { ... }

resource "nubes_postgres_backup" "example" {
  postgres_id = nubes_postgres.baza.id
}