Skip to main content

aws-dynamodb

Query and manage AWS DynamoDB tables and items.

소스 정보

저장소
ThinkfleetAI/thinkfleet-engine
최근 소스 활동
2026년 2월 1일 16:21
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
aws-dynamodb
description
Query and manage AWS DynamoDB tables and items.
metadata
{"thinkfleetbot":{"emoji":"⚙️","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# AWS DynamoDB Query and manage DynamoDB tables. ## List tables ```bash aws dynamodb list-tables --output table ``` ## Describe table ```bash aws dynamodb describe-table --table-name my-table | jq '{TableName: .Table.TableName, Status: .Table.TableStatus, ItemCount: .Table.ItemCount, SizeBytes: .Table.TableSizeBytes, KeySchema: .Table.KeySchema, BillingMode: .Table.BillingModeSummary.BillingMode}' ``` ## Get item ```bash aws dynamodb get-item --table-name my-table \ --key '{"pk": {"S": "user#123"}, "sk": {"S": "profile"}}' | jq '.Item' ``` ## Query items ```bash aws dynamodb query --table-name my-table \ --key-condition-expression "pk = :pk" \ --expression-attribute-values '{":pk": {"S": "user#123"}}' \ --query 'Items[*]' | jq . ``` ## Query with filter ```bash aws dynamodb query --table-name my-table \ --key-condition-expression "pk = :pk AND begins_with(sk, :prefix)" \ --expression-attribute-values '{":pk": {"S": "user#123"}, ":prefix": {"S": "order#"}}' \ --query 'Items[*]' | jq . ``` ## Scan table (use carefully) ```bash aws dynamodb scan --table-name my-table --max-items 10 | jq '{Count, ScannedCount, Items: .Items[:3]}' ``` ## Put item ```bash aws dynamodb put-item --table-name my-table \ --item '{"pk": {"S": "user#456"}, "sk": {"S": "profile"}, "name": {"S": "John"}, "email": {"S": "john@example.com"}}' echo "Item written" ``` ## Delete item ```bash aws dynamodb delete-item --table-name my-table \ --key '{"pk": {"S": "user#456"}, "sk": {"S": "profile"}}' echo "Item deleted" ``` ## Table metrics ```bash aws cloudwatch get-metric-statistics --namespace AWS/DynamoDB \ --metric-name ConsumedReadCapacityUnits --dimensions Name=TableName,Value=my-table \ --start-time $(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%S) --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \ --period 300 --statistics Sum --output table ``` ## Notes - Prefer `query` over `scan`; scans read every item and are expensive. - DynamoDB uses typed attributes (`S` for string, `N` for number, `B` for binary, etc.). - Confirm before writing or deleting items.
GitHub에서 보기