跳至內容

當我將資料從 Amazon S3 匯入至 DynamoDB 時發生非預期權杖錯誤,該如何解決?

1 分的閱讀內容
0

當我將資料從 Amazon Simple Storage Service (Amazon S3) 匯入至 Amazon DynamoDB 時,匯入失敗,並且我收到非預期權杖錯誤訊息。

解決方法

如果您在 DynamoDB 中使用 Import from S3 (從 S3 匯入) 功能,可能會收到類似以下內容的錯誤訊息:

「Unexpected token.Remainder of the file will not be processed.」

請檢閱 Amazon S3 物件的資料格式、壓縮類型和路徑。您 Amazon S3 儲存貯體中的資料必須採用 CSV、DynamoDB JSON 或 ION 格式。如果您壓縮資料,則只能使用 GZIP 或 ZSTD。

檢閱資料後,請使用 DynamoDB 主控台請求匯入。若要追蹤匯入狀態,請在 DynamoDB 主控台中檢視 Imports from S3 (從 S3 匯入)。

AWS 官方已更新 4 個月前