refactor: restructure project — separate tools, config, generated, provider
TOOLS/ — generators + scripts + config + ARCHITECTURE.md ├── yaml-generator/ (code) ├── resource-generator/ (code) ├── docs-generator/ (code) ├── scripts/ (← devops/*.sh) ├── config/ (← devops/profiles/ + devops/config/) │ ├── test/ profile.env, services_list.txt, operation_timeouts.json │ ├── prod/ │ └── dev/ └── ARCHITECTURE.md (← devops/ARCHITECTURE.md) generated/ — pipeline output only (gitignored) ├── test/resources_yaml/, go/, docs/, provider_build/ ├── prod/ └── dev/ provider/ — code only, no generated files resources_yaml/ — DELETED (generated) internal/resources_gen/ — DELETED (generated) devops/ — removed (replaced by TOOLS/scripts + TOOLS/config + generated/) Generators now fail if NUBES_*_DIR not set (no defaults to provider/). Provider requires pipeline to populate resources_gen/ before build.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Resource nubes_s3
|
||||
|
||||
Service ID: `12`
|
||||
|
||||
Service Name: S3 Object Storage
|
||||
|
||||
[Manual](s3.md) | [Create params](s3_params_create.md) | [Modify params](s3_params_modify.md) | [Output params](s3_outputs.md) | [Operations](s3_ops.md) | [Example](s3_example.md)
|
||||
|
||||
## Copy-ready manifest (`s3_main.tf`)
|
||||
|
||||
```hcl
|
||||
terraform {
|
||||
required_providers {
|
||||
nubes = {
|
||||
source = "terra.k8c.ru/nubes/nubes"
|
||||
version = "5.0.39"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Токен доступа api_token к Nubes API — замените на реальный.
|
||||
provider "nubes" {
|
||||
api_token = "token_***"
|
||||
api_endpoint = "https://deck-api.ngcloud.ru/api/v1/index.cfm"
|
||||
}
|
||||
resource "nubes_s3" "baza" {
|
||||
resource_realm = "TODO" # Платформа для развертывания
|
||||
display_name = "TODO" # Человеко-читаемое имя (транслит из Elma) - передаётся имя клиента
|
||||
}
|
||||
```
|
||||
|
||||
## Outputs usage
|
||||
|
||||
```hcl
|
||||
# Выходные параметры можно использовать как
|
||||
nubes_s3.baza.state_params["имя_ключа"]
|
||||
nubes_s3.baza.state_out["имя_ключа"]
|
||||
nubes_s3.baza.state_params_flat["имя_ключа"]
|
||||
nubes_s3.baza.state_out_flat["имя_ключа"]
|
||||
nubes_s3.baza.vault_secrets["имя_ключа"]
|
||||
nubes_s3.baza.vault_url
|
||||
nubes_s3.baza.vault_user_path
|
||||
nubes_s3.baza.vault_fields
|
||||
```
|
||||
Reference in New Issue
Block a user