- 43 YAML, 94 Go, 332 docs from deck-api-test.ngcloud.ru - STANDS.md, TESTING.md, API_TOKENS.md added - Never mix PROD/TEST again
850 B
850 B
Resource nubes_postgres_user — Example
Service: nubes_postgres (ID: 90)
PostgreSQL (основной) | Operations | User | Example
Copy-ready manifest (postgres_user_main.tf)
terraform {
required_providers {
nubes = {
source = "terra.k8c.ru/nubes/nubes"
version = "5.0.57"
}
}
}
provider "nubes" {
api_token = "token_***"
api_endpoint = "https://deck-api.ngcloud.ru/api/v1/index.cfm"
}
# Родительский ресурс — nubes_postgres должен быть создан заранее
# resource "nubes_postgres" "baza" { ... }
resource "nubes_postgres_user" "example" {
postgres_id = nubes_postgres.baza.id
username = "TODO"
role = "app_user" # Выбрать роль из списка
}