一键导入
gcs-setup
Provisions one or more Google Cloud Storage buckets with secure uniform bucket-level access and public access prevention using Terraform.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Provisions one or more Google Cloud Storage buckets with secure uniform bucket-level access and public access prevention using Terraform.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deploys an A2UI ADK agent cleanly to Google Cloud Run in namespaced A2A-compatibility mode.
Expert guide and patterns for building Agent-Driven User Interfaces (A2UI) using the ADK.
Deploys ADK agents to Vertex AI Agent Engine using the Python SDK and registers them with Gemini Enterprise.
Comprehensive guide to building, orchestrating, and deploying agents with the Google Agent Development Kit (ADK).
Provisions a PostgreSQL Cloud SQL instance, database, database user, and registers connection details in Secret Manager using Terraform.
Provisions a scheduled Cloud Scheduler job with secure OIDC token authentication to invoke HTTP targets (such as Reasoning Engine endpoints) using Terraform.
| name | GCS Setup |
| description | Provisions one or more Google Cloud Storage buckets with secure uniform bucket-level access and public access prevention using Terraform. |
| mode | manual |
This skill allows you to easily provision one or more Google Cloud Storage (GCS) buckets on Google Cloud Platform using Terraform. It automatically enables required APIs, configures secure uniform bucket-level access, enforces public access prevention, and supports bulk creation.
v1.5+ (Recommended v1.14+)roles/storage.admin (to manage GCS buckets)roles/serviceusage.serviceUsageConsumer (to enable services)gcs_setup/
├── SKILL.md # This instructions file
├── resources/
│ └── templates/
│ ├── main.tf # Core GCS resources
│ ├── variables.tf # Customizable variables
│ └── outputs.tf # Bucket names and URLs outputs
└── scripts/
└── deploy_gcs.py # Helper Python script to orchestrate deployment
Create a dedicated deployment directory outside your agent code package to prevent Terraform state/binaries from being packaged with the agent.
mkdir -p deploy_gcs
Copy the templates from this skill to your new deploy_gcs folder.
(Note: Replace <path_to_skill> with the path of this skill folder, e.g. skills/gcs_setup)
cp -r <path_to_skill>/resources/templates/* deploy_gcs/
deploy_gcs/terraform.tfvars)Create a file named deploy_gcs/terraform.tfvars and set the following parameters:
project_id = "your-gcp-project-id"
region = "us-central1"
bucket_names = ["my-source-bucket", "my-archive-bucket", "my-error-bucket"]
force_destroy = true # Set to false for production to prevent accidental data loss
Navigate to the deploy_gcs directory, initialize, and deploy the resources:
cd deploy_gcs
terraform init
terraform apply -auto-approve
Upon successful completion, Terraform outputs the connection details and bucket URLs:
bucket_names = [
"my-source-bucket",
"my-archive-bucket",
"my-error-bucket"
]
bucket_urls = {
"my-source-bucket" = "gs://my-source-bucket"
"my-archive-bucket" = "gs://my-archive-bucket"
"my-error-bucket" = "gs://my-error-bucket"
}
You can automate the deployment and bucket creation in a single step using the helper Python script.
Run the script:
python3 <path_to_skill>/scripts/deploy_gcs.py \
--project "your-gcp-project-id" \
--buckets "my-source-bucket,my-archive-bucket,my-error-bucket" \
--work-dir "deploy_gcs"
To destroy the buckets later:
python3 <path_to_skill>/scripts/deploy_gcs.py \
--project "your-gcp-project-id" \
--buckets "my-source-bucket,my-archive-bucket,my-error-bucket" \
--work-dir "deploy_gcs" \
--destroy
enforced by default to prevent bucket objects from being accidentally exposed to the public internet.true in development to allow deleting non-empty buckets. Always set to false in production!