Skip to content

Commit 8232c1a

Browse files
feat: configure S3 backend and add TWC credentials
- Update backend.tf with new bucket ceae9495-terraform-state - Use new endpoints syntax (deprecated endpoint removed) - Add S3 credentials and TWC_TOKEN to .env.example 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent dce951c commit 8232c1a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# === Infrastructure ===
2-
# Timeweb Cloud API token (required)
2+
# Timeweb Cloud API token (required for Terraform and TWC CLI)
33
TF_VAR_timeweb_token=your-timeweb-token-here
4+
TWC_TOKEN=your-timeweb-token-here
45

56
# S3 credentials for Terraform backend (Timeweb S3)
6-
AWS_ACCESS_KEY_ID=your-s3-access-key
7-
AWS_SECRET_ACCESS_KEY=your-s3-secret-key
7+
AWS_ACCESS_KEY_ID=LT98WU4OFJ3TL306KONR
8+
AWS_SECRET_ACCESS_KEY=3RlOKpwnCx2MktBqiui2XS4OxBeI3P0f9QM1NzTG
89

910
# === Kubernetes Cluster ===
1011
TF_VAR_project_id=1115913

terraform/timeweb/backend.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
terraform {
22
backend "s3" {
3-
bucket = "ceae9495-895a43c8-e4e3-424e-9599-6e5b95862164"
4-
key = "terraform/infra.tfstate"
5-
region = "ru-1"
6-
endpoint = "https://s3.twcstorage.ru"
3+
bucket = "ceae9495-terraform-state"
4+
key = "terraform/infra.tfstate"
5+
region = "ru-1"
6+
7+
endpoints = {
8+
s3 = "https://s3.twcstorage.ru"
9+
}
710

811
skip_credentials_validation = true
912
skip_metadata_api_check = true

0 commit comments

Comments
 (0)