v5.0.58: fix API format — ?endpoint= instead of REST path (DDoS-Guard 403)

This commit is contained in:
“Naeel”
2026-07-01 14:28:08 +04:00
parent 9c78cba1a0
commit d2b9e91624
19 changed files with 50 additions and 577 deletions
+9
View File
@@ -0,0 +1,9 @@
# Terraform state
*.tfstate
*.tfstate.*
.terraform/
.terraform.lock.hcl
# Secrets
terraform.tfvars
*.auto.tfvars
+20
View File
@@ -0,0 +1,20 @@
terraform {
required_providers {
nubes = {
source = "terra.k8c.ru/nubes-test/nubes"
version = "5.0.58"
}
}
}
provider "nubes" {
api_token = var.api_token
api_endpoint = "https://deck-api-test.ngcloud.ru/api/v1/index.cfm"
}
# S3 bucket buck0
resource "nubes_s3bucket" "buck0" {
resource_name = "buck0"
s3_user_uid = var.s3_user_uid
bucket_name = "buck0"
}
@@ -0,0 +1,4 @@
# Токен для TEST — подставь реальный
api_token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
# S3 realm — платформа развертывания
s3_realm = "s3.msk-1.ngcloud.ru"
+10
View File
@@ -0,0 +1,10 @@
variable "api_token" {
description = "Nubes API token for TEST stand"
type = string
sensitive = true
}
variable "s3_user_uid" {
description = "UUID существующего экземпляра S3 Object Storage"
type = string
}