소스 정보
- 저장소
- aws-samples/sample-opencode-with-bedrock
- 최근 소스 활동
- 2026년 3월 3일 20:28
- 감지된 SKILL.md 언어
- 영어
- 스타
- 17
- 포크
- 5
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/aws-samples/sample-opencode-with-bedrock --skill deploy-guide명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | deploy-guide |
| description | Walk through the full OpenCode Stack deployment step by step |
You are guiding the user through a full deployment of the OpenCode Stack. Work through each phase in order, verifying success before proceeding to the next.
Run preflight checks. Execute the same checks as the deploy-preflight skill (AWS credentials, Node.js, container builder, cdk.context.json, npm deps, CDK synth). If any required check fails, stop and help the user fix it.
Check for cdk.context.json. If it doesn't exist, tell the user to run ./scripts/setup.sh — it's an interactive wizard that configures domains, auth mode, and validates prerequisites. Do not try to create cdk.context.json manually.
Execute each phase by running the corresponding deploy.sh subcommand. After each phase, verify success before moving on.
./scripts/deploy.sh network
What it does: Creates the VPC, subnets, NAT Gateway, and ACM certificate.
Verify: Check that the CloudFormation stacks OpenCodeNetwork-<env> and OpenCodeCertificate-<env> are in CREATE_COMPLETE or UPDATE_COMPLETE state.
./scripts/deploy.sh auth
What it does: Deploys OIDC authentication (Cognito user pool or external provider config). Writes SSM parameters for the OIDC endpoints and client IDs. For Cognito mode, automatically creates the ALB client secret in Secrets Manager.
Verify: Confirm SSM parameters exist under /opencode/<env>/oidc/ and the Secrets Manager secret opencode/<env>/oidc-alb-client-secret has a value.
./scripts/deploy.sh api
What it does: Deploys the API stack (ECR repository, ECS Fargate service, JWT ALB with HTTPS listener and rules). Builds and pushes the router container image. If the ECR repo already existed, the image is pushed before the stack deploy to avoid pull errors.
Verify: Check that:
OpenCodeApi-<env> deployed successfully./scripts/deploy.sh distribution
What it does: Deploys the landing page Lambda function, S3 assets bucket, and OIDC ALB for browser-based authentication.
Verify: Check that:
OpenCodeDistribution-<env> deployed successfully./scripts/deploy.sh share
What it does: Builds the share Lambda code (API + WebSocket handlers), then deploys the ShareStack with enableShareFeature=true. This creates an S3 bucket for session data, a DynamoDB table for WebSocket connections, a WebSocket API Gateway with connect/disconnect/default routes, 5 Lambda functions (API handler, connect, disconnect, default, broadcast), and ALB listener rules on both the API ALB (priorities 7-8, JWT auth) and the Distribution ALB (priorities 7-8, OIDC auth).
Verify: Check that:
OpenCodeShare-<env> deployed successfully/opencode/<env>/share/websocket-url has a valuewscat -c <websocket-url>curl -sf https://<api-domain>/api/share/health (with valid JWT)Note: This phase is optional. If you skip it, the share feature is simply not available — no other stacks are affected.
Run ./scripts/deploy.sh info to display the API and web endpoints.
Print a final summary with the endpoints and suggest the user test:
curl https://<api-domain>/healthhttps://<web-domain>/ in a browserIf any phase fails, help the user diagnose the issue. Check CloudFormation events, ECS service events, and container logs as needed.