본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)22k · #10326

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-solution-n-tier-serverless-web-app/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“비공개 Cloud SQL 데이터베이스를 가진 안전한 3계층 웹 앱을 Cloud Run에 설계하고, 검토할 수 있는 Terraform 코드도 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

공개된 앞단 계층과 VPC를 통해 서로 통신하는 비공개 내부 계층을 설정하며, 데이터베이스는 비공개로 둡니다. 보안 체크리스트와 검토용 Terraform 코드를 제공합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

<!-- disableFinding(all) --> <!-- mdlint off -->

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.app URLs).
  • 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_dir chains down workspace directories to discover these files.
  • No Search Thrashing on Local Files: Do NOT run code_search or find_by_name queries to look inside assets/main.tf. Read the file directly using view_file once and reuse the context.
  • No Redundant Skill Searches: Do NOT call skill_search for serverless or n-tier architecture skills while executing this skill.

2. Direct Inline Generation (No Subagent Delegation)

  • Perform all architecture compilation, Terraform drafting, gcloud command 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 in assets/main.tf and references/.

3. One-Shot Clean Artifact Writing

  • Generate complete, fully-rendered, and valid HCL blocks and Markdown reports in a single write_to_file call.
  • Avoid leaving placeholders or malformed code fences that require multi-turn replace_file_content and grep_search patch 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬