단계 1: 가상 환경 활성화
CodeServer 접속



환경 설정

프로젝트 구조 분석
모듈 3 디렉토리 구조
모듈 1과의 핵심 차이점
구분
모듈 1
모듈 2
메모리 전략 아키텍처
마지막 업데이트




마지막 업데이트
mkdir -p /workspace/workshop-module-2 && cd /workspace/workshop-module-2 && curl https://ws-assets-prod-iad-r-iad-ed304a55c2ca1aee.s3.us-east-1.amazonaws.com/25286efc-5ab4-45b2-a654-bc31f00e0426/cloudops-zip-files/module-2.zip --output module-2.zip && unzip module-2.zip
cd agentcore-reference && source .venv/bin/activate/workspace/workshop-module-2/agentcore-reference/
├── .bedrock_agentcore.yaml # AgentCore 런타임 설정
├── main.py # 에이전트 엔트리포인트
├── agent_config/
│ ├── agent.py # TroubleshootingAgent (모듈 1과 동일)
│ ├── memory_hook_provider.py # ★ MemoryHook 클래스 (559줄) — 핵심 변경
│ ├── access_token.py # OAuth2 토큰 관리
│ ├── context.py # 런타임 컨텍스트
│ ├── streaming_queue.py # 스트리밍 응답 큐
│ └── utils.py # SSM 파라미터 헬퍼
├── scripts/
│ ├── setup_memory.py # ★ 메모리 리소스 생성 및 초기 데이터 적재
│ ├── troubleshooting_agent_runtime_with_memory.py # ★ 메모리 통합 런타임
│ └── utils.py # 공통 유틸리티
├── memory-strategies/ # ★ 메모리 전략 문서
│ ├── semantic-memory-strategy.md
│ ├── summary-memory-strategy.md
│ ├── user-preference-memory.md
│ └── custom-memory-strategy.md
├── sops/ # SOP 문서 (사용자 선호도 메모리 소스)
│ └── connectivity-troubleshooting-sop.md
└── tests-by-strategy/ # 전략별 테스트
└── integration/
└── test_01_runtime_connectivity_with_memory.py