Manus에서 모든 스킬 실행
원클릭으로
원클릭으로
원클릭으로 Manus에서 모든 스킬 실행
시작하기gcp-functions
스타10
포크4
업데이트2026년 2월 1일 08:28
GCP Cloud Functions 배포/관리
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SKILL.md
readonly메뉴
GCP Cloud Functions 배포/관리
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
GCP 알림 정책 설정 (비용/에러/성능)
GCP 결제 계정 목록
GCP 결제 계정 프로젝트 목록
GCP Billing 조회
GCP 리소스 정리 (Read-Only 스캔)
GCP Cloud Run 서비스 배포/관리
| name | gcp-functions |
| description | GCP Cloud Functions 배포/관리 |
Cloud Functions를 배포하고 관리합니다.
/gcp-functions # 함수 목록 조회
/gcp-functions deploy my-func # 함수 배포
/gcp-functions logs my-func # 로그 조회
/gcp-functions delete my-func # 함수 삭제
gcloud services enable cloudfunctions.googleapis.com --project=$PROJECT_ID
gcloud services enable cloudbuild.googleapis.com --project=$PROJECT_ID
PROJECT_ID=$(gcloud config get-value project)
REGION=asia-northeast3
# Gen 2 (권장)
gcloud functions list --project=$PROJECT_ID --gen2 \
--format="table(name.basename(),state,runtime,updateTime.date())"
# Gen 1
gcloud functions list --project=$PROJECT_ID \
--format="table(name,status,runtime,updateTime.date())"
# 현재 디렉토리에서 배포
gcloud functions deploy FUNCTION_NAME \
--gen2 \
--runtime=python311 \
--region=$REGION \
--source=. \
--entry-point=main \
--trigger-http \
--allow-unauthenticated
# 환경변수 설정
gcloud functions deploy FUNCTION_NAME \
--gen2 \
--runtime=nodejs20 \
--region=$REGION \
--source=. \
--entry-point=handler \
--trigger-http \
--set-env-vars="API_KEY=xxx,DEBUG=true"
# Pub/Sub 트리거
gcloud functions deploy FUNCTION_NAME \
--gen2 \
--runtime=python311 \
--region=$REGION \
--source=. \
--entry-point=process_message \
--trigger-topic=TOPIC_NAME
# Cloud Storage 트리거
gcloud functions deploy FUNCTION_NAME \
--gen2 \
--runtime=python311 \
--region=$REGION \
--source=. \
--entry-point=process_file \
--trigger-event-filters="type=google.cloud.storage.object.v1.finalized" \
--trigger-event-filters="bucket=BUCKET_NAME"
gcloud functions deploy FUNCTION_NAME \
--gen2 \
--region=$REGION \
--memory=256MB \
--timeout=60s \
--min-instances=0 \
--max-instances=100
gcloud functions logs read FUNCTION_NAME \
--region=$REGION \
--gen2 \
--limit=50
# HTTP 함수
curl $(gcloud functions describe FUNCTION_NAME --gen2 --region=$REGION --format='value(url)')
# 데이터와 함께
curl -X POST \
-H "Content-Type: application/json" \
-d '{"name": "test"}' \
$(gcloud functions describe FUNCTION_NAME --gen2 --region=$REGION --format='value(url)')
gcloud functions delete FUNCTION_NAME --region=$REGION --gen2
| 런타임 | 버전 |
|---|---|
| Python | python311, python312 |
| Node.js | nodejs18, nodejs20 |
| Go | go121, go122 |
| Java | java17, java21 |
| Ruby | ruby32 |
## Cloud Functions 목록
| 함수 이름 | 상태 | 런타임 | 트리거 | 업데이트 |
|-----------|------|--------|--------|----------|
| process-order | ACTIVE | python311 | HTTP | 2024-01-15 |
| send-email | ACTIVE | nodejs20 | Pub/Sub | 2024-02-01 |
---
### process-order 상세
| 항목 | 값 |
|------|-----|
| URL | https://xxx.cloudfunctions.net/process-order |
| 리전 | asia-northeast3 |
| 메모리 | 256MB |
| 타임아웃 | 60s |
| 최대 인스턴스 | 100 |
import functions_framework
@functions_framework.http
def main(request):
name = request.args.get('name', 'World')
return f'Hello, {name}!'
exports.handler = (req, res) => {
const name = req.query.name || 'World';
res.send(`Hello, ${name}!`);
};
| 기능 | Gen 1 | Gen 2 |
|---|---|---|
| 기반 | Cloud Functions | Cloud Run |
| 최대 타임아웃 | 9분 | 60분 |
| 최대 메모리 | 8GB | 32GB |
| 동시성 | 1 | 1000 |
| 가격 | 조금 저렴 | 유연 |
| 리소스 | 무료 티어 | 초과 시 |
|---|---|---|
| 호출 | 200만/월 | $0.40/100만 |
| 컴퓨팅 | 400,000 GB-초/월 | $0.0000025/100ms |
| 네트워크 | 5GB/월 | $0.12/GB |
functions-framework 사용