Terraform: imported main (7004701) + tools (7076013) into state, destroyed mon (7076015, 188.225.79.34). State: No changes. S3: fix endpoint s3.timeweb.cloud → s3.twcstorage.ru (actual Timeweb endpoint), remove AWS_S3_ACL=private (Timeweb doesn't support per-object ACLs — was causing Outline upload failures). Vault: added vault_timeweb_token. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
823 B
HCL
27 lines
823 B
HCL
# ── S3 Object Storage ─────────────────────────────────────────────────────────
|
|
# Импортировано через:
|
|
# terraform import twc_s3_bucket.backup 481333
|
|
# terraform import twc_s3_bucket.outline 481335
|
|
|
|
resource "twc_s3_bucket" "backup" {
|
|
name = "walava-backup"
|
|
type = "private"
|
|
preset_id = 2669
|
|
|
|
lifecycle {
|
|
# name/type — write-once поля, нельзя менять после создания
|
|
ignore_changes = [name, type]
|
|
prevent_destroy = true
|
|
}
|
|
}
|
|
|
|
resource "twc_s3_bucket" "outline" {
|
|
name = "walava-outline"
|
|
type = "private"
|
|
preset_id = 2669
|
|
|
|
lifecycle {
|
|
ignore_changes = [name, type]
|
|
prevent_destroy = true
|
|
}
|
|
}
|