KS
Killer-Skills

gcp-iam — how to use gcp-iam how to use gcp-iam, gcp-iam setup guide, gcp-iam alternative, gcp-iam vs terraform, gcp-iam install, gcp iam management, gcp service account creation, gcp role assignment, gcp json key generation

v1.0.0
GitHub

About this Skill

Ideal for Cloud Management Agents requiring automated GCP infrastructure administration and security gcp-iam is a skill for automating GCP IAM management, providing commands for service account creation, role assignment, and key management.

Features

Creates service accounts using the `/gcp-iam create` command
Grants roles to service accounts with the `/gcp-iam grant` command
Generates JSON keys for service accounts using the `/gcp-iam key` command
Lists service accounts with the `gcloud iam service-accounts list` command
Supports role assignment with the `--format"table(email,displayName,disabled)"` option
Manages service accounts with the `gcloud iam service-accounts` command

# Core Topics

kubony kubony
[8]
[5]
Updated: 2/13/2026

Quality Score

Top 5%
30
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add kubony/openclaw-gcp-setup

Agent Capability Analysis

The gcp-iam MCP Server by kubony is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use gcp-iam, gcp-iam setup guide, gcp-iam alternative.

Ideal Agent Persona

Ideal for Cloud Management Agents requiring automated GCP infrastructure administration and security

Core Value

Empowers agents to manage GCP service accounts, grant IAM roles, and generate JSON keys, streamlining DevOps workflows with gcloud commands and IAM protocols

Capabilities Granted for gcp-iam MCP Server

Automating service account creation for new projects
Granting viewer roles to developers for collaboration
Generating JSON keys for secure authentication

! Prerequisites & Limits

  • Requires gcloud CLI installation and configuration
  • GCP project setup and billing enabled
  • Limited to GCP IAM management
Project
SKILL.md
3.3 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

GCP IAM Management

서비스 계정 생성, 역할 부여, 키 관리를 수행합니다.

사용법

/gcp-iam                           # 서비스 계정 목록
/gcp-iam create my-service         # 서비스 계정 생성
/gcp-iam grant viewer              # 역할 부여
/gcp-iam key my-service            # JSON 키 생성

Workflow

1. 서비스 계정 목록

bash
1PROJECT_ID=$(gcloud config get-value project) 2gcloud iam service-accounts list --project=$PROJECT_ID \ 3 --format="table(email,displayName,disabled)"

2. 서비스 계정 생성

bash
1gcloud iam service-accounts create SA_NAME \ 2 --display-name="SA_DISPLAY_NAME" \ 3 --description="Description" \ 4 --project=$PROJECT_ID

3. 역할 부여

bash
1# 프로젝트 수준 역할 2gcloud projects add-iam-policy-binding $PROJECT_ID \ 3 --member="serviceAccount:SA_NAME@$PROJECT_ID.iam.gserviceaccount.com" \ 4 --role="roles/storage.objectViewer" 5 6# 여러 역할 부여 7for role in roles/storage.objectViewer roles/logging.logWriter; do 8 gcloud projects add-iam-policy-binding $PROJECT_ID \ 9 --member="serviceAccount:SA_EMAIL" \ 10 --role="$role" 11done

4. 역할 제거

bash
1gcloud projects remove-iam-policy-binding $PROJECT_ID \ 2 --member="serviceAccount:SA_EMAIL" \ 3 --role="roles/ROLE_NAME"

5. JSON 키 생성

bash
1gcloud iam service-accounts keys create ./sa-key.json \ 2 --iam-account=SA_EMAIL

6. 서비스 계정 삭제

bash
1gcloud iam service-accounts delete SA_EMAIL

자주 쓰는 역할

조회 전용

역할설명
roles/viewer프로젝트 전체 읽기
roles/storage.objectViewerStorage 객체 읽기
roles/bigquery.dataViewerBigQuery 데이터 읽기
roles/logging.viewer로그 읽기

쓰기 포함

역할설명
roles/editor프로젝트 전체 편집
roles/storage.objectAdminStorage 객체 관리
roles/cloudsql.clientCloud SQL 접속
roles/secretmanager.secretAccessorSecret 읽기

Cloud Run / Functions

역할설명
roles/run.invokerCloud Run 호출
roles/cloudfunctions.invokerFunctions 호출
roles/run.adminCloud Run 관리

출력 형식

## 서비스 계정 목록

| 이메일 | 이름 | 상태 |
|--------|------|------|
| my-sa@project.iam.gserviceaccount.com | My Service Account | 활성 |
| compute@...gserviceaccount.com | Compute Engine SA | 활성 |

---

### my-sa@project.iam.gserviceaccount.com 역할

| 역할 | 범위 |
|------|------|
| roles/storage.objectViewer | 프로젝트 |
| roles/logging.logWriter | 프로젝트 |

현재 계정의 역할 확인

bash
1# 프로젝트 IAM 정책 조회 2gcloud projects get-iam-policy $PROJECT_ID \ 3 --flatten="bindings[].members" \ 4 --format="table(bindings.role)" \ 5 --filter="bindings.members:SA_EMAIL"

모범 사례

  1. 최소 권한: 필요한 역할만 부여
  2. 서비스 계정 분리: 용도별로 별도 생성
  3. 키 관리:
    • 가능하면 키 대신 Workload Identity 사용
    • 키는 90일마다 순환
  4. 비활성화: 미사용 계정은 비활성화 후 삭제

주의사항

  • roles/owner는 부여하지 않음 (보안 위험)
  • JSON 키는 안전하게 보관 (Git 커밋 금지!)
  • 키 유출 시 즉시 삭제 후 재생성

Related Skills

Looking for an alternative to gcp-iam or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication