- 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
49 lines
1.4 KiB
Markdown
49 lines
1.4 KiB
Markdown
# Resource nubes_postgres
|
|
|
|
Service ID: `90`
|
|
|
|
Service Name: PostgreSQL
|
|
|
|
[Manual](postgres.md) | [Create params](postgres_params_create.md) | [Modify params](postgres_params_modify.md) | [Output params](postgres_outputs.md) | [Operations](postgres_ops.md) | [Example](postgres_example.md)
|
|
|
|
## Copy-ready manifest (`postgres_main.tf`)
|
|
|
|
```hcl
|
|
terraform {
|
|
required_providers {
|
|
nubes = {
|
|
source = "terra.k8c.ru/nubes/nubes"
|
|
version = "5.0.57"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Токен доступа api_token к Nubes API — замените на реальный.
|
|
provider "nubes" {
|
|
api_token = "token_***"
|
|
api_endpoint = "https://deck-api.ngcloud.ru/api/v1/index.cfm"
|
|
}
|
|
resource "nubes_postgres" "baza" {
|
|
cluster_configuration = "TODO"
|
|
startup_configuration = "TODO"
|
|
access_configuration = "TODO"
|
|
postgres_configuration = "TODO"
|
|
backup_configuration = "TODO"
|
|
autoscale_configuration = "TODO"
|
|
}
|
|
```
|
|
|
|
## Outputs usage
|
|
|
|
```hcl
|
|
# Выходные параметры можно использовать как
|
|
nubes_postgres.baza.state_params["имя_ключа"]
|
|
nubes_postgres.baza.state_out["имя_ключа"]
|
|
nubes_postgres.baza.state_params_flat["имя_ключа"]
|
|
nubes_postgres.baza.state_out_flat["имя_ключа"]
|
|
nubes_postgres.baza.vault_secrets["имя_ключа"]
|
|
nubes_postgres.baza.vault_url
|
|
nubes_postgres.baza.vault_user_path
|
|
nubes_postgres.baza.vault_fields
|
|
```
|