소스 정보
- 저장소
- 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 verify-deployment명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | verify-deployment |
| description | Post-deployment health checks and endpoint validation for the OpenCode Stack |
You are performing post-deployment health checks on the OpenCode Stack. Run each check and report the results.
Read the environment name from cdk.context.json (default: dev). Use this for SSM parameter paths and stack names.
Fetch the API and web domain names:
aws ssm get-parameter --name "/opencode/<env>/api/dns-name" --query 'Parameter.Value' --output text
aws ssm get-parameter --name "/opencode/<env>/web/dns-name" --query 'Parameter.Value' --output text
Hit the API health endpoints and report status:
curl -sf https://<api-domain>/health
curl -sf https://<api-domain>/ready
Check the ECS service desired vs running task count:
aws ecs describe-services \
--cluster <cluster-name> \
--services <service-name> \
--query 'services[0].{desired:desiredCount,running:runningCount,pending:pendingCount}'
Get cluster and service names from SSM:
/opencode/<env>/ecs/cluster-name/opencode/<env>/ecs/router-service-nameCheck that ALB targets are healthy:
aws elbv2 describe-target-health --target-group-arn <tg-arn>
Get the target group ARN from the API stack CloudFormation outputs or SSM parameters.
Verify the web/distribution endpoint responds:
curl -sf -o /dev/null -w '%{http_code}' https://<web-domain>/
Confirm OIDC SSM parameters are populated:
/opencode/<env>/oidc/issuer/opencode/<env>/oidc/jwks-url/opencode/<env>/oidc/alb-client-id/opencode/<env>/oidc/cli-client-idVerify the JWKS endpoint is reachable:
curl -sf <jwks-url> | head -c 100
Only run these checks if the share feature is deployed. Detect by checking if the SSM parameter /opencode/<env>/share/websocket-url exists.
Check ShareStack status:
aws cloudformation describe-stacks --stack-name OpenCodeShare-<env> --query 'Stacks[0].StackStatus'
Verify share SSM parameters exist:
aws ssm get-parameters-by-path --path "/opencode/<env>/share/" --query 'Parameters[].Name'
Expected parameters:
/opencode/<env>/share/websocket-url/opencode/<env>/share/bucket-name/opencode/<env>/share/connections-table-nameTest WebSocket endpoint:
WS_URL=$(aws ssm get-parameter --name "/opencode/<env>/share/websocket-url" --query 'Parameter.Value' --output text)
# Verify the URL is well-formed (wss:// prefix)
Verify share ALB rules exist on the API ALB (priorities 7-8):
LISTENER_ARN=$(aws ssm get-parameter --name "/opencode/<env>/alb/jwt/listener-arn" --query 'Parameter.Value' --output text)
aws elbv2 describe-rules --listener-arn "$LISTENER_ARN" --query 'Rules[?Priority==`7` || Priority==`8`].[Priority,Actions[0].Type]' --output table
Print a summary:
Deployment Health Check
─────────────────────────────────
✓ API endpoint — https://oc.example.com (200 OK)
✓ Health check — healthy
✓ ECS service — 2/2 tasks running
✓ ALB targets — 2 healthy
✓ Distribution — https://downloads.oc.example.com (200 OK)
✓ OIDC config — all SSM params present, JWKS reachable
✓ Share feature — WebSocket wss://xxx.execute-api.us-east-1.amazonaws.com/prod, 3 SSM params, ALB rules present
─────────────────────────────────
Status: ALL HEALTHY
Use ✓ for healthy, ✗ for unhealthy, and ○ for unable to check. If the share feature is not deployed, show it as ○ Share feature — not deployed (optional). If anything is unhealthy, suggest running /troubleshoot for diagnosis.