id
rv_id
Kéo xuống cuối trang, ấn nút Create table Vậy là bạn đã tạo xong bảng Books với Local secondary index là name-index
Để thêm dữ liệu cho bảng, bạn có thể tải tệp dưới đây: Data dynamoDB.json (4 ko) Mở tệp, sau đó thay toàn bộ <AWS-REGION> bằng vùng mà bạn tạo S3 bucket book-image-resize-shop, ví dụ: ap-southeast-2 Chạy câu lệnh sau tại thư mục mà bạn lưu tệp dynamoDB.json aws dynamodb batch-write-item --request-items file://dynamoDB.json
Mở tệp, sau đó thay toàn bộ <AWS-REGION> bằng vùng mà bạn tạo S3 bucket book-image-resize-shop, ví dụ: ap-southeast-2
<AWS-REGION>
Chạy câu lệnh sau tại thư mục mà bạn lưu tệp dynamoDB.json
aws dynamodb batch-write-item --request-items file://dynamoDB.json