assured-workloads-basics
它能做什么
这个技能帮你设置符合严格合规规则的 Google Cloud 文件夹。它适用于受监管行业中,需要合规场所运行工作负载的机构。
适用场景
- ✓当你想为 FedRAMP、ITAR 或医疗健康规则等合规要求设置 Google Cloud 文件夹的时候。
- ✓当你需要列出、检查或修改已有的 Assured Workloads 文件夹的时候。
- ✓当你想为合规工作负载设置客户管理的加密密钥或服务限制的时候。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/assured-workloads-basics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在 Google Cloud 上为团队的工作负载创建一个符合 FedRAMP 的文件夹,并告诉我允许使用哪些服务。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先检查你的输入,然后使用 gcloud 和 Python 工具创建或更新符合合规要求的文件夹。只读检查会直接运行,任何更改都需要你先确认。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Cloud Assured Workloads Basics (V1 GA)
Validate prerequisites, create Assured Workloads V1 compliant folders, allowlist compliant services, and list, inspect, update, or delete existing workloads using gcloud and the Google Cloud Python Client Libraries (google-cloud-assured-workloads and google-api-python-client).
Usage Attribution
For all gcloud CLI, REST API, and MCP attribution requirements when executing commands with this skill, follow the instructions in Usage Attribution.
Mandatory Guardrails
- No Fabrication: Never invent Organization IDs, Billing Account IDs, Folder IDs, Project IDs, Workload IDs, or Compliance Regime enums. Validate parameters with
scripts/validate_params.pybefore running commands. - Regional / Multi-Regional Locations & CLI Surface: Assured Workloads V1 does not support
--location=global; always use a regional or multi-regional location compatible with the compliance regime (see references/regimes.md). Never usegcloud compliance-managercommands for Assured Workloads V1 workloads. - Human Confirmation Before Mutation: Read-only operations (
list,describe, andscripts/manage_workload_updates.py --action=list) can run immediately after validation, but you must obtain explicit user confirmation before executing any mutating or destructive command (create,restrict_allowed_resources.py,update,manage_workload_updates.py --action=apply,delete,folders delete, orprojects delete). - Telemetry Attribution & Regional Endpoints:
- Prefix every
gcloudcommand you execute directly withCLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:assured-workloads-basics)"(see Usage Attribution). - Configure Python GAPIC and Discovery clients with regional
ClientOptions(api_endpoint="{location}-assuredworkloads.googleapis.com").
- Prefix every
Step 0: Prerequisites & Environment Setup
Verify these 5 prerequisites before running Assured Workloads operations:
- CLI & Python Libraries: Install the Google Cloud SDK (
gcloud— see the Google Cloud SDK Installation Guide) and Python client libraries:pip install "google-cloud-assured-workloads>=1.0,<2" "google-api-python-client>=2.0,<3" "google-auth>=2.0,<3" - Dual Authentication (CLI + ADC): Authenticate both
gcloudand Application Default Credentials (gcloud auth login && gcloud auth application-default login, orgcloud auth activate-service-account --key-file=/path/to/key.json+export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"). - Quota & Admin Project:
gcloud config set project {admin_project_id}andgcloud auth application-default set-quota-project {admin_project_id}. - API Enablement: Enable the Assured Workloads API (
assuredworkloads.googleapis.com):gcloud services enable assuredworkloads.googleapis.com --project={admin_project_id} - Organization-Level IAM Roles (
organizations/{org_id}):- Caller:
roles/assuredworkloads.admin(orroles/assuredworkloads.reader/roles/assuredworkloads.editorfor read-onlylist/describe),roles/resourcemanager.organizationViewer, androles/billing.useron--billing-account=billingAccounts/{billing_id}when creating workloads (plusbilling.resourceAssociations.createon--partner-services-billing-accountfor partner workloads). - Assured Workloads Service Agent (
service-{org_number}@gcp-sa-assuredworkloads.iam.gserviceaccount.com):roles/assuredworkloads.serviceAgent.
- Caller:
Workflow 1: Create an Assured Workloads workload (Two-Phase Provisioning)
Phase 1: Validate Parameters & Create Workload (gcloud assured workloads create)
- Select Regime & Location: Check references/regimes.md for all 45 V1
--compliance-regimeenums and valid--locationvalues.- Free-Tier Regional Data Boundaries (
REGIONAL_DATA_BOUNDARY): Free-tier regional data boundaries (e.g., US Data Boundary with standard commercial support and without sovereign personnel support uplift, EU Data Boundary, Australia/India/UK/Canada/Israel Data Boundary) map to--compliance-regime=REGIONAL_DATA_BOUNDARY(legacy alias:REGIONAL_CONTROLS) paired with--location={location}(except Japan, which usesJAPAN_DATA_BOUNDARY). Do not set `--comp
- Free-Tier Regional Data Boundaries (
常见问题
它会不经询问就更改任何内容吗?
不会。只读检查会直接运行,但任何创建、更新或删除操作都需要你明确确认。
可以使用全球位置吗?
不可以。Assured Workloads 需要符合合规规则的区域或多区域位置。
它从哪里查到每条规则适用的位置?
它使用一份参考清单,把每种合规制度与其允许的位置对应起来。
详情
作者的原始描述
Provisions, inspects, updates, and deletes Google Cloud Assured Workloads V1 compliant folders, CMEK settings, Sovereign Controls by Partners, and service usage restrictions. Use when creating, listing, describing, updating, or deleting an Assured Workloads workload for any compliance regime or data boundary (FedRAMP, DoD IL2/IL4/IL5, ITAR, CJIS, Healthcare, Sovereign Controls by Partners, or Regional Data Boundaries). Don't use for brownfield assessments or custom frameworks (use assuredworkloads-environment-assessor or assuredworkloads-frameworks-*), or non-compliant folders.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10220
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。