openclaw/.claude/SESSION_NOTIFY.md
Shunsuke Hayashi 4d74fdf593 feat(aws): add ECS Fargate deployment for Clawdbot Discord bot
Add complete ECS Fargate infrastructure for Clawdbot Discord bot
deployment on AWS.

## Infrastructure (Terraform)
- **VPC**: 100.64.0.0/16 with DNS support
- **Public Subnets**: 2 subnets in different AZs
- **ECR Repository**: clawdbot/bot with lifecycle policy
- **IAM Roles**: Task Role (DynamoDB+S3) + Execution Role
- **ECS Resources**: Fargate (256 CPU, 2048 MB memory)
- **Security Group**: Outbound only
- **CloudWatch**: Log group with 7-day retention

## Security Improvements
- Discord Bot Token → AWS Secrets Manager
- IAM policy with least privilege principle
- No plaintext secrets in code

## Code Quality
- Fix all 22 lint errors
- Add *.d.ts to oxlint ignore patterns
- Fix Dockerfile .buildstamp for Linux compatibility

Closes #2049

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-26 13:38:43 +09:00

44 lines
858 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Clawdbot セッション終了通知
## 設定完了
**セッション終了時のみ Discord 通知** が設定されました
### 通知内容
```
🤖 Claude Code セッション終了
📅 日時: 2026-01-26 10:30:00
👤 ユーザー: shunsukehayashi
🖥️ ホスト: Mac-mini
✅ 作業完了
```
### 設定値
| 項目 | 値 |
|------|-----|
| 通知チャンネル | **#status** |
| チャンネル ID | `1465087451113722019` |
| 通知タイミング | セッション終了時1回のみ |
### チャンネル変更
通知先を変更する場合:
```bash
cd ~/dev/clawdbot
# #general に変更
echo 'DISCORD_NOTIFY_CHANNEL=1465087447225598207' >> .env
# #task-queue に変更
echo 'DISCORD_NOTIFY_CHANNEL=1465087503622209757' >> .env
```
### テスト
セッションを終了して通知を確認してください。