Aller au contenu
Skillpedia
Sécurité22k · #10313

google-cloud-recipe-foundation-builder

Ce qu’il fait

Cette skill crée un point de départ sécurisé pour une nouvelle organisation Google Cloud. Elle s'adresse aux entreprises qui veulent des règles de sécurité standard, des dossiers et une journalisation en place avant de construire.

Quand l’utiliser

  • ✓Quand vous mettez en place une nouvelle organisation Google Cloud et voulez une base sécurisée.
  • ✓Quand vous voulez des politiques d'organisation de référence, une structure de dossiers et une journalisation centralisée en place.
  • ✓Quand vous avez besoin d'une zone d'atterrissage de style entreprise pour une nouvelle configuration Google Cloud.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/google-cloud-recipe-foundation-builder/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mets en place une base sécurisée pour ma nouvelle organisation Google Cloud, avec des dossiers pour la production et le développement et une journalisation centralisée.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle applique un ensemble standard de politiques d'organisation, crée la structure de dossiers et de projets, relie la facturation, puis configure la journalisation centralisée et la supervision. La skill est actuellement en préversion.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes

Cette fonctionnalité est-elle finalisée ?

Non. La skill est en préversion et n'inclut pas toutes les options avancées.

Que met-elle en place ?

17 politiques d'organisation de référence, quatre dossiers nommés Common, Production, Non-Production et Development, et une journalisation centralisée.

Où trouver d'autres options ?

La page de documentation Google Cloud Setup propose d'autres options.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
22k
Position au classement
#10313
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires