{
    "componentChunkName": "component---src-templates-mdx-content-page-js",
    "path": "/dynamodb-import-from-s3/",
    "result": {"data":{"mdx":{"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"path\": \"/dynamodb-import-from-s3/\",\n  \"publishedDate\": \"2026-11-20\",\n  \"updatedDate\": \"2026-11-20\",\n  \"metaTitle\": \"DynamoDB Import from S3: Formats, Costs and Examples\",\n  \"metaDescription\": \"Import CSV, DynamoDB JSON or Ion from S3 into a new DynamoDB table. See pricing, IAM permissions, error handling and CLI, SDK and CloudFormation examples.\",\n  \"title\": \"How to Import Data from S3 to DynamoDB\",\n  \"authorName\": \"Rafal Wilinski\",\n  \"authorLink\": \"https://x.com/rafalwilinski\",\n  \"authorImage\": \"/images/authors/rafal-wilinski.jpg\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"To import data from S3 to DynamoDB, stage CSV, DynamoDB JSON, or Amazon Ion files in S3, then call \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ImportTable\"), \" with the source prefix and the destination key schema. \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"DynamoDB Import from S3 always creates a new table\"), \", so an existing table cannot be the target. The import runs asynchronously and consumes no write capacity. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.HowItWorks.html\"\n  }, \"AWS Import from S3 guide\")), mdx(\"h2\", null, \"Prepare your S3 files\"), mdx(\"p\", null, \"Put the data under a dedicated prefix such as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orders/seed/\"), \". DynamoDB attempts to read every matching object, so keep manifests and other metadata outside the prefix. All matching files must use the same format and the same compression setting: \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"NONE\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GZIP\"), \", or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ZSTD\"), \". The request settings determine how DynamoDB reads the objects, regardless of filename extension. Keep the source objects unchanged until the job finishes. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Validation.html\"\n  }, \"Import validation\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html\"\n  }, \"requesting an import\")), mdx(\"h3\", null, \"CSV\"), mdx(\"p\", null, \"By default, the first row of \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"each file\"), \" supplies the attribute names and commas separate the fields. For headerless files, pass \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"InputFormatOptions.Csv.HeaderList\"), \" with one name per column. With that option, DynamoDB reads the first row as data. Set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"InputFormatOptions.Csv.Delimiter\"), \" if your files use another supported separator. Wrap fields containing commas in double quotes, and escape a literal double quote by doubling it. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Format.html#S3DataImport.Requesting.Formats.CSV\"\n  }, \"AWS CSV format guide\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CsvOptions.html\"\n  }, \"CSV options\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-csv\"\n  }, \"OrderId,LineId,Sku,Quantity,Gift\\nORD-1042,1,MUG-BLUE,2,false\\n\")), mdx(\"p\", null, \"CSV key columns take their types from the table or index key definitions. In this example, \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"LineId\"), \" becomes a Number because it is declared as a numeric sort key. Other columns become Strings, so \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Quantity\"), \" is stored as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"\\\"2\\\"\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Gift\"), \" as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"\\\"false\\\"\"), \". Empty fields are omitted. Use a typed format if those values need to be a DynamoDB Number and Boolean. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Format.html\"\n  }, \"AWS import formats\")), mdx(\"h3\", null, \"DynamoDB JSON\"), mdx(\"p\", null, \"Set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"InputFormat\"), \" to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"DYNAMODB_JSON\"), \". Write one marshalled \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Item\"), \" object per line, with no array around the records or commas between them. Use DynamoDB attribute descriptors such as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"S\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"N\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"BOOL\"), \". The payload of \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"N\"), \" is a JSON string, even though DynamoDB stores it as a Number. The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-json-converter-tool/\"\n  }, \"DynamoDB JSON converter\"), \" can help inspect a typed item before you wrap it in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Item\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Format.html\"\n  }, \"AWS import formats\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html\"\n  }, \"AttributeValue reference\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\\"Item\\\":{\\\"OrderId\\\":{\\\"S\\\":\\\"ORD-1042\\\"},\\\"LineId\\\":{\\\"N\\\":\\\"1\\\"},\\\"Sku\\\":{\\\"S\\\":\\\"MUG-BLUE\\\"},\\\"Quantity\\\":{\\\"N\\\":\\\"2\\\"},\\\"Gift\\\":{\\\"BOOL\\\":false}}}\\n\")), mdx(\"h3\", null, \"Amazon Ion\"), mdx(\"p\", null, \"Set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"InputFormat\"), \" to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ION\"), \". Write one text record per line with the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"$ion_1_0\"), \" version marker followed by an \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Item\"), \" struct. Use Ion decimals for DynamoDB Numbers, such as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"1.\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"2.\"), \". Annotate an Ion list with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"$dynamodb_SS\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"$dynamodb_NS\"), \", or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"$dynamodb_BS\"), \" if it represents a DynamoDB set. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Format.html\"\n  }, \"AWS Ion import mapping\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html\"\n  }, \"Ion record layout\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-text\"\n  }, \"$ion_1_0 {Item:{OrderId:\\\"ORD-1042\\\",LineId:1.,Sku:\\\"MUG-BLUE\\\",Quantity:2.,Gift:false}}\\n\")), mdx(\"h3\", null, \"Size limits and import cost\"), mdx(\"p\", null, \"The default quota is \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"50,000 S3 objects per job\"), \" and \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"50 concurrent imports per account per Region\"), \". The combined size of the source objects for in-flight imports is limited to \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"15 TB\"), \" in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"us-east-1\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"us-west-2\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"eu-west-1\"), \", and \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"1 TB\"), \" in other Regions. These quotas use the S3 object sizes as stored, so compression helps you fit more data. Split large inputs across multiple objects for parallel processing. Each resulting DynamoDB item must fit within the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"400 KB\"), \" item limit, including attribute names and values. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Validation.html\"\n  }, \"Import quotas\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.BestPractices.html\"\n  }, \"import best practices\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Constraints.html#limits-items\"\n  }, \"DynamoDB item limits\")), mdx(\"p\", null, \"DynamoDB bills per GB of \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"uncompressed source data processed\"), \", including records it processes but fails to load. The rate in US East (N. Virginia) is \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"$0.15 per GB\"), \", so 100 GB of uncompressed input processed there costs $15 for the import itself. Compression affects the source size quota and leaves the import charge per uncompressed GB unchanged. The job consumes no write capacity on the new table. Budget separately for S3 storage and requests and for storing and using the resulting table. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://aws.amazon.com/dynamodb/pricing/\"\n  }, \"DynamoDB pricing\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonDynamoDB/current/us-east-1/index.json\"\n  }, \"US East price list\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.HowItWorks.html\"\n  }, \"AWS import billing details\")), mdx(\"h2\", null, \"Define the new table\"), mdx(\"p\", null, \"In \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"TableCreationParameters\"), \", set \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-faq/are-dynamodb-table-names-globally-unique/\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"TableName\"), \" to an unused name\"), \" and define the partition key (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HASH\"), \") and optional sort key (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"RANGE\"), \") in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"KeySchema\"), \". Every item needs a value for each base-table key. In \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"AttributeDefinitions\"), \", declare the types of the table and index keys: String (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"S\"), \"), Number (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"N\"), \"), or Binary (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"B\"), \"). Ordinary attributes such as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Quantity\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Gift\"), \" \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-errors/some-attributedefinitions-are-not-used/\"\n  }, \"need no definitions\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TableCreationParameters.html\"\n  }, \"Table creation parameters\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeDefinition.html\"\n  }, \"key attribute types\")), mdx(\"p\", null, \"Set each GSI's name, key schema, and projection in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GlobalSecondaryIndexes\"), \". Check that any supplied \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-errors/dynamodb-one-or-more-parameter-values-were-invalid-type-mismatch-for-index-key/\"\n  }, \"index key has the declared type\"), \". An item missing a GSI key stays in the base table and is absent from that index. ImportTable supports GSIs at creation and does not support local secondary indexes. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Validation.html\"\n  }, \"Import validation\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-indexes-general-sparse-indexes.html\"\n  }, \"sparse indexes\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.HowItWorks.html\"\n  }, \"AWS import guide\")), mdx(\"p\", null, \"Use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"BillingMode: PAY_PER_REQUEST\"), \" for on-demand capacity. With \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"PROVISIONED\"), \", set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ProvisionedThroughput\"), \" with read and write capacity units for the table and each GSI. Size capacity for application traffic after the load, since the import itself uses none of it. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ImportTable.html\"\n  }, \"ImportTable API\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://aws.amazon.com/blogs/database/amazon-dynamodb-can-now-import-amazon-s3-data-into-a-new-table/\"\n  }, \"AWS import walkthrough\")), mdx(\"h2\", null, \"Grant access to S3, DynamoDB, and CloudWatch\"), mdx(\"p\", null, \"Grant the user or role that starts the import the following permissions. Use the source bucket and prefix for S3 access and the destination account and Region for the table and logs. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html\"\n  }, \"AWS import IAM example\")), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Resource\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Permissions\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"New table and import\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"dynamodb:ImportTable\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"dynamodb:DescribeImport\"), \". Add \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"dynamodb:ListImports\"), \" if the operator needs to list jobs.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Source bucket and objects\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"s3:ListBucket\"), \" on the bucket and \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"s3:GetObject\"), \" on the objects under the import prefix.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"CloudWatch Logs\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:DescribeLogGroups\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:CreateLogGroup\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:CreateLogStream\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:DescribeLogStreams\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:PutLogEvents\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:PutRetentionPolicy\"), \". Give the operator \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"logs:GetLogEvents\"), \" to read the error stream.\")))), mdx(\"p\", null, \"For a \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"cross-account bucket\"), \", allow the importing principal to list the source bucket and read the input objects in the bucket policy, in addition to its IAM permissions. Set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"S3BucketSource.S3BucketOwner\"), \" to the source bucket owner's account ID. Omitting it assumes the caller's account. The source and destination may be in different Regions. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html\"\n  }, \"AWS cross-account import permissions\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/permissions-reference-cwl.html\"\n  }, \"CloudWatch Logs permissions\")), mdx(\"p\", null, \"For \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"SSE-KMS source objects\"), \", grant the importing principal \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"kms:Decrypt\"), \" on the source key. Cross-account access requires a customer managed key and authorization in both the key policy and the caller's IAM policy. Import does not support SSE-C source objects. If you also specify a customer managed key for the new DynamoDB table, grant the separate DynamoDB encryption permissions on that key, including \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"kms:CreateGrant\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html\"\n  }, \"S3 SSE-KMS\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html\"\n  }, \"cross-account KMS access\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/encryption.usagenotes.html\"\n  }, \"DynamoDB key permissions\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html\"\n  }, \"import permissions\")), mdx(\"h2\", null, \"Run the import\"), mdx(\"p\", null, \"For any of the examples below, upload the uncompressed DynamoDB JSON sample to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orders/seed/part-0001.jsonl\"), \" in your source bucket. Export \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"SOURCE_BUCKET\"), \" with the bucket name, \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"TABLE_NAME\"), \" with an unused table name, and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"AWS_REGION\"), \" with the destination Region. Each example creates an on-demand table keyed by \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"OrderId\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"LineId\"), \", with a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"BySku\"), \" GSI. If you prefer a form to a command, Dynobase's \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-s3-import/\"\n  }, \"S3 import workflow\"), \" starts the same ImportTable job from the desktop app.\"), mdx(\"h3\", null, \"AWS CLI v2\"), mdx(\"p\", null, \"The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/cli/latest/reference/dynamodb/import-table.html\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"aws dynamodb import-table\"), \" command\"), \" returns the import ARN. Save it for the status check.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"IMPORT_ARN=$(aws dynamodb import-table \\\\\\n  --region \\\"$AWS_REGION\\\" \\\\\\n  --s3-bucket-source \\\"S3Bucket=$SOURCE_BUCKET,S3KeyPrefix=orders/seed/\\\" \\\\\\n  --input-format DYNAMODB_JSON \\\\\\n  --input-compression-type NONE \\\\\\n  --table-creation-parameters \\\"{\\n    \\\\\\\"TableName\\\\\\\": \\\\\\\"$TABLE_NAME\\\\\\\",\\n    \\\\\\\"BillingMode\\\\\\\": \\\\\\\"PAY_PER_REQUEST\\\\\\\",\\n    \\\\\\\"AttributeDefinitions\\\\\\\": [\\n      {\\\\\\\"AttributeName\\\\\\\": \\\\\\\"OrderId\\\\\\\", \\\\\\\"AttributeType\\\\\\\": \\\\\\\"S\\\\\\\"},\\n      {\\\\\\\"AttributeName\\\\\\\": \\\\\\\"LineId\\\\\\\", \\\\\\\"AttributeType\\\\\\\": \\\\\\\"N\\\\\\\"},\\n      {\\\\\\\"AttributeName\\\\\\\": \\\\\\\"Sku\\\\\\\", \\\\\\\"AttributeType\\\\\\\": \\\\\\\"S\\\\\\\"}\\n    ],\\n    \\\\\\\"KeySchema\\\\\\\": [\\n      {\\\\\\\"AttributeName\\\\\\\": \\\\\\\"OrderId\\\\\\\", \\\\\\\"KeyType\\\\\\\": \\\\\\\"HASH\\\\\\\"},\\n      {\\\\\\\"AttributeName\\\\\\\": \\\\\\\"LineId\\\\\\\", \\\\\\\"KeyType\\\\\\\": \\\\\\\"RANGE\\\\\\\"}\\n    ],\\n    \\\\\\\"GlobalSecondaryIndexes\\\\\\\": [{\\n      \\\\\\\"IndexName\\\\\\\": \\\\\\\"BySku\\\\\\\",\\n      \\\\\\\"KeySchema\\\\\\\": [{\\\\\\\"AttributeName\\\\\\\": \\\\\\\"Sku\\\\\\\", \\\\\\\"KeyType\\\\\\\": \\\\\\\"HASH\\\\\\\"}],\\n      \\\\\\\"Projection\\\\\\\": {\\\\\\\"ProjectionType\\\\\\\": \\\\\\\"KEYS_ONLY\\\\\\\"}\\n    }]\\n  }\\\" \\\\\\n  --query 'ImportTableDescription.ImportArn' --output text)\\nprintf '%s\\\\n' \\\"$IMPORT_ARN\\\"\\n\")), mdx(\"h3\", null, \"Python with boto3\"), mdx(\"p\", null, \"Use the low-level \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/boto3/latest/reference/services/dynamodb/client/import_table.html\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"import_table\"), \" client method\"), \".\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import os\\n\\nimport boto3\\n\\ndynamodb = boto3.client(\\\"dynamodb\\\", region_name=os.environ[\\\"AWS_REGION\\\"])\\nresponse = dynamodb.import_table(\\n    S3BucketSource={\\n        \\\"S3Bucket\\\": os.environ[\\\"SOURCE_BUCKET\\\"],\\n        \\\"S3KeyPrefix\\\": \\\"orders/seed/\\\",\\n    },\\n    InputFormat=\\\"DYNAMODB_JSON\\\",\\n    InputCompressionType=\\\"NONE\\\",\\n    TableCreationParameters={\\n        \\\"TableName\\\": os.environ[\\\"TABLE_NAME\\\"],\\n        \\\"BillingMode\\\": \\\"PAY_PER_REQUEST\\\",\\n        \\\"AttributeDefinitions\\\": [\\n            {\\\"AttributeName\\\": \\\"OrderId\\\", \\\"AttributeType\\\": \\\"S\\\"},\\n            {\\\"AttributeName\\\": \\\"LineId\\\", \\\"AttributeType\\\": \\\"N\\\"},\\n            {\\\"AttributeName\\\": \\\"Sku\\\", \\\"AttributeType\\\": \\\"S\\\"},\\n        ],\\n        \\\"KeySchema\\\": [\\n            {\\\"AttributeName\\\": \\\"OrderId\\\", \\\"KeyType\\\": \\\"HASH\\\"},\\n            {\\\"AttributeName\\\": \\\"LineId\\\", \\\"KeyType\\\": \\\"RANGE\\\"},\\n        ],\\n        \\\"GlobalSecondaryIndexes\\\": [\\n            {\\n                \\\"IndexName\\\": \\\"BySku\\\",\\n                \\\"KeySchema\\\": [{\\\"AttributeName\\\": \\\"Sku\\\", \\\"KeyType\\\": \\\"HASH\\\"}],\\n                \\\"Projection\\\": {\\\"ProjectionType\\\": \\\"KEYS_ONLY\\\"},\\n            },\\n        ],\\n    },\\n)\\nprint(response[\\\"ImportTableDescription\\\"][\\\"ImportArn\\\"])\\n\")), mdx(\"h3\", null, \"JavaScript SDK v3\"), mdx(\"p\", null, \"Run this as an ES module with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"@aws-sdk/client-dynamodb\"), \" installed. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/command/ImportTableCommand/\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"ImportTableCommand\"), \" reference\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-js\"\n  }, \"import { DynamoDBClient, ImportTableCommand } from \\\"@aws-sdk/client-dynamodb\\\"\\n\\nconst dynamodb = new DynamoDBClient({ region: process.env.AWS_REGION })\\nconst { ImportTableDescription } = await dynamodb.send(new ImportTableCommand({\\n  S3BucketSource: {\\n    S3Bucket: process.env.SOURCE_BUCKET,\\n    S3KeyPrefix: \\\"orders/seed/\\\",\\n  },\\n  InputFormat: \\\"DYNAMODB_JSON\\\",\\n  InputCompressionType: \\\"NONE\\\",\\n  TableCreationParameters: {\\n    TableName: process.env.TABLE_NAME,\\n    BillingMode: \\\"PAY_PER_REQUEST\\\",\\n    AttributeDefinitions: [\\n      { AttributeName: \\\"OrderId\\\", AttributeType: \\\"S\\\" },\\n      { AttributeName: \\\"LineId\\\", AttributeType: \\\"N\\\" },\\n      { AttributeName: \\\"Sku\\\", AttributeType: \\\"S\\\" },\\n    ],\\n    KeySchema: [\\n      { AttributeName: \\\"OrderId\\\", KeyType: \\\"HASH\\\" },\\n      { AttributeName: \\\"LineId\\\", KeyType: \\\"RANGE\\\" },\\n    ],\\n    GlobalSecondaryIndexes: [{\\n      IndexName: \\\"BySku\\\",\\n      KeySchema: [{ AttributeName: \\\"Sku\\\", KeyType: \\\"HASH\\\" }],\\n      Projection: { ProjectionType: \\\"KEYS_ONLY\\\" },\\n    }],\\n  },\\n}))\\nconsole.log(ImportTableDescription.ImportArn)\\n\")), mdx(\"h3\", null, \"CloudFormation\"), mdx(\"p\", null, \"Deploy this template with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"SourceBucket\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"TableName\"), \" set. The stack's execution role needs the import permissions. Changing \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ImportSourceSpecification\"), \" requires table replacement. For a named table, a replacement requires a new physical table name. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-dynamodb-table-importsourcespecification.html\"\n  }, \"ImportSourceSpecification reference\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-dynamodb-table.html\"\n  }, \"DynamoDB table resource\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-yaml\"\n  }, \"AWSTemplateFormatVersion: \\\"2010-09-09\\\"\\nParameters:\\n  SourceBucket:\\n    Type: String\\n  TableName:\\n    Type: String\\nResources:\\n  Orders:\\n    Type: AWS::DynamoDB::Table\\n    Properties:\\n      TableName: !Ref TableName\\n      BillingMode: PAY_PER_REQUEST\\n      AttributeDefinitions:\\n        - AttributeName: OrderId\\n          AttributeType: S\\n        - AttributeName: LineId\\n          AttributeType: N\\n        - AttributeName: Sku\\n          AttributeType: S\\n      KeySchema:\\n        - AttributeName: OrderId\\n          KeyType: HASH\\n        - AttributeName: LineId\\n          KeyType: RANGE\\n      GlobalSecondaryIndexes:\\n        - IndexName: BySku\\n          KeySchema:\\n            - AttributeName: Sku\\n              KeyType: HASH\\n          Projection:\\n            ProjectionType: KEYS_ONLY\\n      ImportSourceSpecification:\\n        S3BucketSource:\\n          S3Bucket: !Ref SourceBucket\\n          S3KeyPrefix: orders/seed/\\n        InputFormat: DYNAMODB_JSON\\n        InputCompressionType: NONE\\n\")), mdx(\"h2\", null, \"Monitor the import and diagnose bad rows\"), mdx(\"p\", null, \"Open \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Imports from S3\"), \" in the DynamoDB console or call \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeImport.html\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"DescribeImport\")), \" with the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"import ARN\"), \". Wait for \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"COMPLETED\"), \" before switching application traffic. Compare \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ProcessedItemCount\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ImportedItemCount\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ErrorCount\"), \" against what you expected to load.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"aws dynamodb describe-import --region \\\"$AWS_REGION\\\" --import-arn \\\"$IMPORT_ARN\\\"\\n\")), mdx(\"p\", null, \"DynamoDB skips invalid items and continues processing. If an object cannot be parsed, it may skip the remainder of that object too. An item validation error leaves the job in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"FAILED\"), \" with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"FailureCode: ItemValidationError\"), \". A failed import can leave a partially loaded table, so check the destination before retrying with corrected input and an unused table name. Duplicate full primary keys overwrite each other in an unspecified order and produce no error, so deduplicate first if the surviving version matters. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Validation.html\"\n  }, \"AWS import validation and troubleshooting\")), mdx(\"p\", null, \"For failures, inspect \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"FailureMessage\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"CloudWatchLogGroupArn\"), \". In the destination Region, the group is \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/aws-dynamodb/imports\"), \" and the stream is \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"<import-id>/error\"), \". The import ID is the last segment of the import ARN. Item errors can include the source S3 key, item index, and validation message. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Validation.html#S3DataImport.Validation.Troubleshooting\"\n  }, \"AWS CloudWatch troubleshooting\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"aws logs get-log-events --region \\\"$AWS_REGION\\\" \\\\\\n  --log-group-name /aws-dynamodb/imports \\\\\\n  --log-stream-name \\\"${IMPORT_ARN##*/}/error\\\"\\n\")), mdx(\"h2\", null, \"Round-trip a full DynamoDB export\"), mdx(\"p\", null, \"Start with a \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/export-dynamodb-data-to-s3/\"\n  }, \"full DynamoDB export to S3\"), \" in DynamoDB JSON format. For the new import, set the prefix to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"your-prefix/AWSDynamoDB/<export-id>/data/\"), \", the format to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"DYNAMODB_JSON\"), \", and compression to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GZIP\"), \". The data files already contain one typed \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Item\"), \" per line. Keep the manifest and checksum files out of the import prefix, and define the destination keys and indexes separately. Incremental exports contain change records that can include deletes, so process them as changes to apply. For a spreadsheet copy, see \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/export-dynamodb-to-csv/\"\n  }, \"exporting DynamoDB to CSV\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html\"\n  }, \"AWS export output format\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html\"\n  }, \"importing an export\")), mdx(\"h2\", null, \"Load into an existing DynamoDB table\"), mdx(\"p\", null, \"For an existing table, AWS also offers \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BulkPutItems.HowItWorks.html\"\n  }, \"bulk put items\"), \" through \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"StartBulkPutItems\"), \". It reads DynamoDB JSON or Ion from S3, consumes no table write capacity, and supports per-item conditions. Its puts replace existing items unless a condition prevents the write. Convert CSV to a supported typed format first, or use a loader that handles CSV directly. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BulkPutItems.Format.html\"\n  }, \"Bulk put input formats and conditions\")), mdx(\"p\", null, \"Use a custom loader when you need transformations at ingestion, partial updates, or custom handling for rejected records. With \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-batch-write-update-delete/\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"BatchWriteItem\")), \", send up to 25 puts or deletes per request and retry \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"UnprocessedItems\"), \" with exponential backoff. See \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/code-examples/dynamodb-bulk-insert/\"\n  }, \"the JavaScript bulk insert example\"), \". Batch puts replace entire items and have no per-item conditions. For an in-place merge, use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"UpdateItem\"), \" and add a condition when the update depends on the item's current state. For a file-based GUI workflow, see \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/import-csv-to-dynamodb/\"\n  }, \"importing CSV into DynamoDB\"), \" or \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/import-json-to-dynamodb/\"\n  }, \"importing JSON into an existing table\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html\"\n  }, \"BatchWriteItem API\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html\"\n  }, \"UpdateItem API\")), mdx(\"p\", null, \"For parallel processing across many S3 objects, a Step Functions Distributed Map can read CSV or JSON Lines, then run child workflows that transform and write records. Set \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"MaxConcurrency\"), \" to keep the workers within the target table and GSI write limits. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/step-functions/latest/dg/state-map-distributed.html\"\n  }, \"Distributed Map\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/step-functions/latest/dg/input-output-itemreader.html\"\n  }, \"S3 ItemReader\")), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Approach\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Destination\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Load charges\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Choose it for\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"ImportTable\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"New table\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Per uncompressed GB processed, no table write capacity\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Creating a table from a snapshot or staged CSV\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"StartBulkPutItems\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Existing table\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Bulk put fees, no table write capacity\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Managed loads of typed data with optional per-item conditions\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Custom \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"BatchWriteItem\"), \" loader\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Existing table\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Normal DynamoDB write charges\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Simple batch puts or deletes with custom parsing\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Step Functions Distributed Map\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Existing table\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Workflow and worker costs plus DynamoDB writes\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Parallel loads with transformations, partial updates, or custom retry handling\")))), mdx(\"p\", null, mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://aws.amazon.com/dynamodb/pricing/\"\n  }, \"DynamoDB pricing\"), \", \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://aws.amazon.com/step-functions/pricing/\"\n  }, \"Step Functions pricing\")), mdx(FAQ, {\n    questions: [{\n      question: \"Can DynamoDB ImportTable write to an existing table?\",\n      answer: \"No. ImportTable always creates a new table. For a managed load into an existing table, use bulk put items. Use a custom loader for partial updates or transformations during ingestion.\"\n    }, {\n      question: \"Does DynamoDB infer data types from CSV?\",\n      answer: \"Table and index key columns use the types declared for those keys. Other populated fields are imported as strings. Use DynamoDB JSON or Ion to preserve types such as numbers and booleans in non-key attributes.\"\n    }, {\n      question: \"Does importing to DynamoDB consume write capacity?\",\n      answer: \"ImportTable uses no write capacity. AWS charges for the uncompressed input processed, including processed records that fail to load.\"\n    }, {\n      question: \"Can I import a DynamoDB export directly from S3?\",\n      answer: \"Yes. For a full export in DynamoDB JSON format, point the import at the export's data prefix and choose DynamoDB JSON with GZIP compression. Define the destination table's schema in the import request.\"\n    }, {\n      question: \"What happens when an import finds invalid rows?\",\n      answer: \"DynamoDB skips invalid items and marks the job FAILED for item validation errors. Check the import status and the error stream in CloudWatch Logs. A failed import can leave a partially loaded table.\"\n    }],\n    mdxType: \"FAQ\"\n  }));\n}\n;\nMDXContent.isMDXComponent = true;","frontmatter":{"publishedDate":"2026-11-20","updatedDate":"2026-11-20","path":"/dynamodb-import-from-s3/","metaTitle":"DynamoDB Import from S3: Formats, Costs and Examples","metaDescription":"Import CSV, DynamoDB JSON or Ion from S3 into a new DynamoDB table. See pricing, IAM permissions, error handling and CLI, SDK and CloudFormation examples.","title":"How to Import Data from S3 to DynamoDB","authorName":"Rafal Wilinski","authorLink":"https://x.com/rafalwilinski","authorImage":"/images/authors/rafal-wilinski.jpg","image":null}}},"pageContext":{}},
    "staticQueryHashes": ["3649515864"]}