google-cloud-solution-n-tier-serverless-web-app
Fungsinya
Skill ini merancang aplikasi web multi-tier di Cloud Run dengan isolasi jaringan yang ketat antar-tier. Skill ini ditujukan untuk tim yang menginginkan aplikasi tanpa server yang aman dengan database privat dan layanan internal privat.
Kapan dipakai
- ✓Saat Anda ingin merancang aplikasi web tanpa server multi-tier di Google Cloud.
- ✓Saat Anda memerlukan layanan internal privat tanpa akses internet langsung di Cloud Run.
- ✓Saat Anda memiliki kebutuhan residensi data atau kedaulatan Eropa untuk aplikasi tanpa server.
Link skill
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-solution-n-tier-serverless-web-app/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Rancang aplikasi web tiga tier yang aman di Cloud Run dengan database Cloud SQL privat dan kode Terraform yang dapat saya tinjau.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini mengatur tier depan publik dan tier internal privat yang saling terhubung melalui VPC, dengan database tetap privat. Skill ini menyediakan daftar periksa keamanan dan kode Terraform untuk ditinjau.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Secure n-tier serverless web application with strict private application tiers
This skill guides agents through the workflow of designing and implementing a secure serverless web application with as many architectural design layers as specified by the user. It uses Cloud Run for the serverless layers and Cloud SQL for PostgreSQL as the data layer. A three-tier web application might be represented in three architectural layers: a Cloud Run presentation layer, a Cloud Run application layer, and a Cloud SQL for PostgreSQL database layer.
The architecture enforces strict physical and network isolation across all tiers (T1 to TN):
- Tier 1 presentation tier (frontend / reverse proxy): Public-facing UI rendering/gateway service (Cloud Run). Exposes the entry point via Cloud Load Balancing and routes requests downstream to internal tiers privately via Direct VPC Egress.
- Tier 2..N application tier (internal microservices / business logic): Private application services (Cloud Run). 100% isolated from the internet (Ingress: VPC-internal,
INGRESS_TRAFFIC_INTERNAL_ONLY), reachable exclusively via upstream VPC routing (egress = "ALL_TRAFFIC"with Private Google Access on the subnet for*.run.appURLs). - Data tier: Private Cloud SQL for persistent data and Memorystore for Redis for caching, reachable exclusively from authorized application tiers.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
General guidance to the LLM
1. Direct Resource Map (Zero-Search File Access)
All necessary reference architectures, HCL templates, and checklists are co-located in this skill. Use exact relative paths from this skill folder:
| Asset Path | Purpose & Usage |
|---|---|
assets/main.tf |
Single Source of Truth for Terraform (HCL). Contains all security boundaries, Cloud Run v2 configs, PSC endpoints, DNS private zones, and firewall rules. |
assets/output-template.md |
Standardized Solution Architecture report markdown structure. |
references/non-negotiable-architectural-rules.md |
Non-negotiable security rules, audit checklist, and product mappings. |
references/related-guidance.md |
Supplemental deep reference (do NOT read for standard design or IaC tasks; read only if specialized edge-case troubleshooting is explicitly required). |
- No Directory Crawling: Do NOT run
list_dirchains down workspace directories to discover these files. - No Search Thrashing on Local Files: Do NOT run
code_searchorfind_by_namequeries to look insideassets/main.tf. Read the file directly usingview_fileonce and reuse the context. - No Redundant Skill Searches: Do NOT call
skill_searchfor serverless or n-tier architecture skills while executing this skill.
2. Direct Inline Generation (No Subagent Delegation)
- Perform all architecture compilation, Terraform drafting,
gcloudcommand assembly, and validation script generation directly in the primary conversation. - Do NOT invoke subagents (
invoke_subagent) to research external GitHub Terraform modules, probe environment configs, or draft reports. All required patterns are fully contained inassets/main.tfandreferences/.
3. One-Shot Clean Artifact Writing
- Generate complete, fully-rendered, and valid HCL blocks and Markdown reports in a single
write_to_filecall. - Avoid leaving placeholders or malformed code fences that require multi-turn
replace_file_contentandgrep_searchpatch loops. - No Unpopulated Placeholders: When embedding code or scripts inside architecture reports (e.g., Section 6 of
assets/output-template.md), always inline the actual complete Terraform code, gcloud commands, and validation script code. Never output literal template placeholder comments (e.g.,# [Paste of main.tf file contents]). - In-Response Direct Rendering (Mandatory): Whenever Terraform code, deployment scripts, or architecture reports are requested or generated (e.g., "provide a design and Terraform code", "generate IaC"), you MUST print the complete generated
terraform ...HCL code block and full solution report directly in your chat response text, in addition to writing them to files on disk. Never output only an architectural design summary or file links when code is requested; automated eva
Pertanyaan umum
Apakah database dapat dijangkau dari internet?
Tidak. Tier data dijaga tetap privat dan hanya dapat dijangkau melalui jaringan privat.
Apakah mencakup aplikasi VM atau GKE?
Tidak. Skill ini untuk aplikasi Cloud Run tanpa server.
Apa yang disediakannya?
Desain arsitektur, daftar periksa keamanan, kode Terraform, dan panduan deployment.
Detail
Deskripsi asli dari pembuat
Assists in designing and implementing secure n-tier serverless web applications and microservices on Google Cloud. Use when users need architecture designs, security checklists, Terraform code, or deployment guidance for multi-tier serverless apps, regional data residency / European sovereignty compliance, zero-trust private VPC networking, or Private Service Connect. Don't use for VM, GKE, or non-Google Cloud architectures.
repo: google/skills
Popularitas
- Bintang GitHub
- 22k
- Peringkat
- #10326
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
finding-google-skills
22kMembantu agent Anda menemukan panduan Google yang tepat untuk tugas pengaturan, seperti hosting, database, penyimpanan, login, atau penyajian model AI.
gcloud
22kMembantu agent Anda menulis dan memeriksa perintah gcloud Google Cloud, dengan mencari sintaks yang tepat sebelum menjalankan apa pun agar tidak menebak flag.
google-cloud-recipe-auth
22kMemandu agent Anda melalui identitas dan akses Google Cloud, termasuk cara orang dan layanan masuk serta izin apa yang mereka dapatkan.
google-cloud-recipe-onboarding
22kMemandu pengembang baru melalui langkah pertama di Google Cloud, termasuk memilih proyek, menautkan penagihan, dan men-deploy sumber daya pertama.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.