本文へスキップ
Skillpedia
セキュリティ22k · #10313

google-cloud-recipe-foundation-builder

できること

このスキルは、新しい Google Cloud 組織の安全な出発点を設定します。標準的なセキュリティルール、フォルダー、ログを、構築を始める前に整えたい企業向けです。

使う場面

  • ✓新しい Google Cloud 組織を立ち上げ、安全な基準を整えたいとき。
  • ✓基準となる組織ポリシー、フォルダー構成、中央ログを用意したいとき。
  • ✓新しい Google Cloud 環境に、企業向けのランディングゾーンが必要なとき。

スキルのリンク

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-recipe-foundation-builder/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/google/skills/blob/main/skills/cloud/google-cloud-recipe-foundation-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“新しい Google Cloud 組織の安全な基盤を設定してください。本番用と開発用のフォルダーと、中央ログを用意してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

標準の組織ポリシーを適用し、フォルダーとプロジェクトの構成を作成し、請求を紐付けて、中央のログとモニタリングを設定します。このスキルは現在プレビュー版です。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Google Cloud Recipe: Foundation Builder

[!WARNING] This skill is currently in a preview state. It will deploy a secure foundation, but does not have all advanced features. Users who want more options should visit Google Cloud Setup.

This skill guides the setup of a secure, enterprise-grade Google Cloud landing zone foundation. It establishes baseline security controls, organizes the initial resource hierarchy, and configures centralized audit logging and cross-environment monitoring.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-recipe-foundation-builder)" and append agent-skills/1.0 (skill:google-cloud-recipe-foundation-builder) to User-Agent headers.

Overview

The recipe provisions the following core components at the organization root:

  • Security Guardrails: Enforces 17 baseline Google Cloud Organization Policies to secure the environment (13 Boolean, 4 List constraints).
  • Resource Hierarchy: Establishes 4 folders (Common, Production, Non-Production, Development) and provisions corresponding projects sequentially with globally unique ID prefixes (logging-, prod-, non-prod-, dev- followed by a shared suffix).
  • Billing & API Enablement: Links all projects to your billing account and activates critical logging/monitoring services.
  • Centralized Logging & Monitoring: Deploys a global, centralized log bucket with 30-day retention, configures an organization-wide audit log sink, and sets up a cross-environment metrics scope.

Clarifying Questions

Before executing this recipe, the agent must gather the following details:

  1. Organization ID: Run gcloud organizations list to retrieve the available organizations, present them to the user, and ask them to select the target Organization ID.
  2. Billing Account ID: Run gcloud billing accounts list --filter=open=true to retrieve only the active (open) billing accounts, present them to the user, and ask them to select the active Billing Account ID.
  3. Project ID Suffix: Ask if the user has a preferred prefix or target suffix for Project IDs (default uses prefix + a shared random 8-character string, e.g., prod-ab12cd34).
  4. Log Bucket Region: Ask for the target region for resources if they want to override the default global log bucket location.

Prerequisites

Ensure the following prerequisites are met before beginning the deployment:

  • GCP Identity: You must have a Google Cloud Organization resource set up.
  • Administrative IAM Roles: The identity executing these commands must hold the required administrative permissions. If any step fails with a Permission Denied error, the agent will attempt to self-remediate by granting the corresponding recommended role as detailed in Phase 2: Error Recovery & Lazy Role Remediation Strategy.
  • Tools: The gcloud CLI must be installed, authorized with the above identity, and configured for use.

Steps to Complete the Recipe

Phase 1: Pre-flight Confirmation

Identify the target organization and obtain explicit user approval before making changes.

  1. Identify and Discover Organization: Verify the target organization. If only the display name is known, list organizations to find the ID. Then, retrieve the organization metadata to dynamically calculate the Directory Customer ID and Domain Name:

    # List to find ID if needed
    gcloud organizations list
    
    # Describe the organization to retrieve metadata
    gcloud organizations describe [ORGANIZATION_ID]
    

    Calculate values:

    • Domain Name ([ORG_NAME] / [YOUR_DOMAIN]): Use the displayName value from the output (e.g., my-business.com).
    • Customer ID ([DIRECTORY_CUSTOMER_ID]): Use the
よくある質問

この機能は完成していますか?

いいえ。プレビュー版で、高度なオプションはすべて含まれていません。

何を設定しますか?

17 個の基本的な組織ポリシー、Common、Production、Non-Production、Development という 4 つのフォルダー、中央ログです。

他のオプションはどこで確認できますか?

Google Cloud Setup のドキュメントページに、より多くのオプションがあります。

詳細

作者による元の説明

Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended security controls and architecture. Use when setting up a new Google Cloud Organization or establishing a secure, enterprise-grade landing zone foundation. Don't use for individual project onboarding (use google-cloud-recipe-onboarding or product-specific skills instead).

repo: google/skills

人気

GitHubのスター
22k
ランキング
#10313
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル