Skip to content

[COMMON]: 인프라 모니터링 GitHub Actions → Claude 클라우드 루틴(SSM) 전환 - #173

Merged
geunu97 merged 1 commit into
mainfrom
staging
Sep 2, 2026
Merged

[COMMON]: 인프라 모니터링 GitHub Actions → Claude 클라우드 루틴(SSM) 전환#173
geunu97 merged 1 commit into
mainfrom
staging

Conversation

@geunu97

@geunu97 geunu97 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • SSH 프라이빗키 기반 GitHub Actions cron(monitor-infra.yml)을 삭제하고, SSH 키 없이 AWS SSM Run Command로 EC2 상태를 점검하는 Claude 클라우드 루틴으로 전환
  • .claude/skills/picake-infra-monitor/SKILL.md 신설: 기존 점검 항목(CPU/메모리/디스크/PM2/Postgres/nginx/SSL/응답시간) + AWS 사용 현황·이번 달 비용 분석(전월 대비, 서비스별 breakdown)·업그레이드 판단 팁 추가
  • staging/production EC2에 SSM용 IAM 인스턴스 프로파일 연결, 루틴 전용 읽기전용+SSM한정 IAM 자격증명 발급 (AWS 콘솔에서 별도 작업)
  • 더 이상 필요없는 시크릿(AWS_REGION, DISCORD_WEBHOOK_URL_INFRA_MONITORING) 삭제 (배포용 시크릿은 공유 사용 중이라 유지)

Test plan

  • SSM Run Command로 staging/production 양쪽 다 명령 실행 확인
  • 루틴 전용 스코프 IAM 자격증명으로 SSM/Cost Explorer 접근 확인, IAM 등 민감 액션은 거부되는지 확인
  • main 머지 후 루틴(Picake 인프라 모니터링) 재실행해 SKILL.md를 정상적으로 찾고 전체 파이프라인이 도는지 확인

🤖 Generated with Claude Code

https://claude.ai/code/session_01Au6qVAM3RXf7rAakifYDcL

SSH 프라이빗키 없이 AWS SSM Run Command로 EC2 상태를 점검하도록 절차를 정리하고,
AWS 사용 현황·비용 분석·업그레이드 판단 팁을 추가했다. 기존 monitor-infra.yml의
스케줄 기반 실행은 대체되어 삭제한다 (로직 히스토리는 git log로 확인 가능).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Au6qVAM3RXf7rAakifYDcL
@geunu97
geunu97 merged commit 4507720 into main Sep 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant