← Back to list

yandex-cloud-terraform
by skibitskiy
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: yandex-cloud-terraform description: Terraform IaC patterns for Yandex Cloud. Use when creating, modifying, or refactoring Terraform configurations for YDB, S3, Message Queue, Cloud Functions, API Gateway, or Serverless Containers. Provides resource patterns, naming conventions, and best practices from production projects.
Terraform Yandex Cloud
Quick Start
Choose Structure
Modular (environments/ + modules/): Multiple environments (dev/stage/prod), reusable components
Flat (functional files): Single environment, small-medium projects
Essential Patterns
# Resource naming with prefix
locals {
resource_prefix = "${var.project_name}-${var.environment}"
}
# YDB tables require wait for database readiness
resource "time_sleep" "wait_for_database" {
depends_on = [yandex_ydb_database_serverless.this]
create_duration = "30s"
}
# TTL on temporary data
ttl {
column_name = "expires_at"
expire_interval = "PT0S" # immediate
}
# Secondary index with concurrency guard
resource "yandex_ydb_table_index" "index2" {
# ...
depends_on = [yandex_ydb_table_index.index1]
}
Common Tasks
- Add YDB table: See YDB.md for table patterns, TTL, indexes
- Add S3 bucket: See S3.md for public/private buckets, lifecycle, CORS
- Add Cloud Function: See FUNCTIONS.md for build+deploy patterns
- Add Message Queue: See QUEUE.md for DLQ and retry patterns
- Add Serverless Container: See CONTAINERS.md for Docker registry, triggers, sizing
- IAM roles: See IAM.md for common role combinations
Key Pitfalls
- YDB tables fail without
depends_on = [time_sleep.wait_for_database] - Multiple indexes need sequential
depends_onto avoid concurrent schema modifications - TTL format:
P5D= 5 days,PT0S= immediate - Service accounts need explicit IAM role bindings
- Functions need
user_hashfor redeployment triggers - Docker images MUST be built with
--platform=linux/amd64(ARM images fail with "Internal error")
Score
Total Score
45/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon