089. 블루프린트 CLI 작업 (Blueprint Operations CLI)
- 원문: English
- 위치: Additional capabilities › Data Automation › Using Amazon Bedrock Data Automation CLI › Blueprint Operations CLI
한 줄 요약
aws bedrock-data-automation으로 블루프린트를 생성·조회·수정·LIVE 승격·버전 생성·태그·삭제·최적화·스테이지 복사하는 명령 모음입니다.
핵심 내용
create-blueprint 파라미터
| 파라미터 | 필수 | 기본값 | 설명 |
|---|---|---|---|
--blueprint-name | ✅ | - | 이름 |
--type | ✅ | - | IMAGE, DOCUMENT, AUDIO, VIDEO |
--blueprint-stage | - | LIVE | DEVELOPMENT 또는 LIVE |
--schema | ✅ | - | 블루프린트 구조 JSON 스키마 |
--client-token | - | 자동 생성 | 멱등성 |
스키마 최소 예:
{
"class": "Passport",
"description": "Blueprint for processing passport images",
"properties": {
"passport_number": {"type": "string", "inferenceType": "explicit", "instruction": "The passport identification number"}
}
}
명령 요약
| 작업 | 명령 |
|---|---|
| 전체 목록 | list-blueprints |
| 상세 / 특정 버전 / 특정 스테이지 | get-blueprint --blueprint-arn (+ --blueprint-version / --blueprint-stage) |
| 스키마 수정 | update-blueprint --schema |
| LIVE 승격 | update-blueprint --blueprint-stage "LIVE" |
| 버전 생성(현재 상태 보존) | create-blueprint-version |
| 태그 | tag-resource / untag-resource / list-tags-for-resource |
| 삭제(모든 버전) | delete-blueprint |
| 최적화 시작 | invoke-blueprint-optimization-async (--blueprint ARN+stage, --samples에 assetS3Object+groundTruthS3Object, --output-configuration, --data-automation-profile-arn) |
| 최적화 상태 | get-blueprint-optimization-status (Created, InProgress, Success, ServiceError, ClientError) |
| 스테이지 복사 | copy-blueprint-stage --source-stage DEVELOPMENT --target-stage LIVE |
주의사항
- ⚠️
update-blueprint시 바꾸지 않는 필드까지 스키마 전체를 다시 넘겨야 합니다. - ⚠️
delete-blueprint는 영구 삭제(복구 불가). 프로젝트에서 사용 중인 블루프린트는 삭제 불가 → 먼저 프로젝트의 커스텀 출력 설정에서 제거 - ⚠️
copy-blueprint-stage는 타깃 스테이지 설정을 덮어쓰며 쉽게 되돌릴 수 없습니다. 소스 스테이지에서 충분히 테스트 후 실행
SA 관점
- 큰 변경 전에는
create-blueprint-version으로 스냅샷을 남기고,DEVELOPMENT에서 최적화·검증 →LIVE복사 순서로 운영하세요. 스키마는 Git으로 관리해 전체 스키마 재제출 요구사항에 대응하는 것이 편합니다.