google-cloud-solution-n-tier-serverless-web-app
하는 일
이 스킬은 계층 사이에 엄격한 네트워크 분리를 둔 다중 계층 웹 앱을 Cloud Run에 설계합니다. 비공개 데이터베이스와 비공개 내부 서비스를 가진 안전한 서버리스 앱을 원하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓Google Cloud에서 다중 계층 서버리스 웹 앱을 설계하고 싶을 때.
- ✓Cloud Run에서 인터넷 직접 접근이 없는 비공개 내부 서비스가 필요할 때.
- ✓서버리스 앱에 데이터 거주지나 유럽 주권 요구 사항이 있을 때.
스킬 링크
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-solution-n-tier-serverless-web-app/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“비공개 Cloud SQL 데이터베이스를 가진 안전한 3계층 웹 앱을 Cloud Run에 설계하고, 검토할 수 있는 Terraform 코드도 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
공개된 앞단 계층과 VPC를 통해 서로 통신하는 비공개 내부 계층을 설정하며, 데이터베이스는 비공개로 둡니다. 보안 체크리스트와 검토용 Terraform 코드를 제공합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
데이터베이스에 인터넷에서 접근할 수 있나요?
아닙니다. 데이터 계층은 비공개로 유지되며 비공개 네트워크로만 접근할 수 있습니다.
VM이나 GKE 앱도 다루나요?
아닙니다. 서버리스 Cloud Run 앱을 위한 것입니다.
무엇을 제공하나요?
아키텍처 설계, 보안 체크리스트, Terraform 코드, 배포 안내입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 22k
- 순위
- #10326
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
finding-google-skills
22k에이전트가 호스팅, 데이터베이스, 저장소, 로그인, AI 모델 제공처럼 설정 작업에 맞는 Google 가이드를 찾도록 돕습니다.
gcloud
22k에이전트가 Google Cloud gcloud 명령을 작성하고 확인하도록 돕습니다. 플래그를 추측하지 않도록 무엇이든 실행하기 전에 정확한 문법을 확인합니다.
google-cloud-recipe-auth
22k에이전트가 Google Cloud의 신원과 접근 권한을 안내합니다. 사람과 서비스가 어떻게 로그인하고 어떤 권한을 받는지 포함합니다.
google-cloud-recipe-onboarding
22k새 개발자가 Google Cloud에서 프로젝트 선택, 결제 연결, 첫 리소스 배포 같은 첫 단계를 밟도록 안내합니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.