{
    "componentChunkName": "component---src-templates-mdx-content-page-js",
    "path": "/dynamodb-localstack/",
    "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-localstack/\",\n  \"publishedDate\": \"2026-11-20\",\n  \"updatedDate\": \"2026-11-20\",\n  \"metaTitle\": \"LocalStack DynamoDB: Docker Compose, SDKs, Streams and CI\",\n  \"metaDescription\": \"Run DynamoDB in LocalStack with Docker Compose. Configure the AWS CLI and SDKs, persist data, trigger Lambda from Streams, and test in GitHub Actions.\",\n  \"title\": \"Run DynamoDB in LocalStack with Docker Compose\",\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, \"Run DynamoDB in LocalStack by starting its Docker container with a LocalStack auth token and pointing your AWS CLI or SDK at \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"http://localhost:4566\"), \". LocalStack emulates multiple AWS services on your machine, so you can test a DynamoDB write and the Lambda function it triggers without deploying to AWS. The current image uses LocalStack's own Rust-based DynamoDB and Streams emulator by default. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/getting-started/installation/\"\n  }, \"LocalStack installation\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/dynamodb/\"\n  }, \"DynamoDB service coverage\")), mdx(\"h2\", null, \"Does LocalStack run DynamoDB Local internally?\"), mdx(\"p\", null, \"Older versions used AWS's downloadable DynamoDB Local as their backend. The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://blog.localstack.cloud/localstack-for-aws-release-2026-09-0/\"\n  }, \"2026.09.0 release, published October 2, 2026\"), \", made LocalStack's Rust-based engine the default on every plan. The deprecated DynamoDB Local backend is still available on paid plans via \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"PROVIDER_OVERRIDE_DYNAMODB=legacy_pro\"), \". Requests go to the LocalStack gateway whichever backend is selected. Check the service coverage for the APIs you need before relying on a local test. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/customization/configuration-options/#dynamodb\"\n  }, \"LocalStack configuration\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/dynamodb/\"\n  }, \"DynamoDB service coverage\")), mdx(\"h2\", null, \"LocalStack licensing and auth tokens in November 2026\"), mdx(\"p\", null, \"On March 23, 2026, release \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"2026.03.0\"), \" consolidated the Community and Pro distributions. From that release onward, \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"localstack/localstack\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"localstack/localstack-pro\"), \" publish the same image, and startup requires a valid LocalStack auth token. Your token determines the features you can use. Older Community tags remain available as historical releases and miss subsequent fixes. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://blog.localstack.cloud/localstack-for-aws-release-2026-03-0/\"\n  }, \"March 2026 release announcement\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://blog.localstack.cloud/the-road-ahead-for-localstack/\"\n  }, \"Community migration notice\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/getting-started/auth-token/\"\n  }, \"Auth token documentation\")), mdx(\"p\", null, \"LocalStack lists \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Hobby\"), \" as free for non-commercial use and \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Base, Ultimate and Enterprise\"), \" as commercial subscriptions as of March 23, 2026. A verified GitHub Education student account can qualify for Student, and open-source projects can apply for sponsorship. The plan matrix lists DynamoDB, Streams, Lambda and CI testing on Hobby, subject to the non-commercial terms. Local state persistence is included on Base, Ultimate, Enterprise and Student. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/licensing/\"\n  }, \"LocalStack plan matrix\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/help-support/support-offerings/\"\n  }, \"LocalStack support plans\")), mdx(\"p\", null, \"Use a personal Developer Token locally and a workspace CI Auth Token in automated pipelines. Pass either to the emulator as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"LOCALSTACK_AUTH_TOKEN\"), \". The AWS API clients below sign requests separately with the dummy values \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"test\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"test\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/getting-started/auth-token/\"\n  }, \"LocalStack auth tokens\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/connecting/credentials/\"\n  }, \"LocalStack AWS credentials\")), mdx(\"h2\", null, \"Start LocalStack DynamoDB with Docker Compose\"), mdx(\"p\", null, \"Save the following as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"compose.yaml\"), \" in a demo directory. It pins the image to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"2026.10.0\"), \", publishes the gateway on the host loopback address, and mounts the Docker socket so LocalStack can start Lambda runtime containers. You can omit the socket mount for DynamoDB-only development. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://blog.localstack.cloud/localstack-for-aws-release-2026-10-0/\"\n  }, \"LocalStack 2026.10.0 release\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/getting-started/installation/\"\n  }, \"LocalStack Compose installation\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-yaml\"\n  }, \"services:\\n  localstack:\\n    image: localstack/localstack:2026.10.0\\n    ports:\\n      - \\\"127.0.0.1:4566:4566\\\"\\n    environment:\\n      LOCALSTACK_AUTH_TOKEN: \\\"${LOCALSTACK_AUTH_TOKEN:?Set your LocalStack auth token}\\\"\\n      PERSISTENCE: \\\"${ORDERS_PERSISTENCE:-0}\\\"\\n    volumes:\\n      - localstack-data:/var/lib/localstack\\n      - /var/run/docker.sock:/var/run/docker.sock\\n\\nvolumes:\\n  localstack-data:\\n\")), mdx(\"p\", null, \"Export \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"LOCALSTACK_AUTH_TOKEN\"), \" from your local secrets store or set it in an untracked \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \".env\"), \" file next to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"compose.yaml\"), \". Start Docker, then run \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"docker compose up -d\"), \". Inspect startup with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"docker compose logs localstack\"), \" if the API does not respond yet. The host endpoint is \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"http://localhost:4566\"), \". If your application is another service in the same Compose project, use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"http://localstack:4566\"), \" so the hostname resolves to the LocalStack container. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/customization/networking/accessing-endpoint-url/\"\n  }, \"LocalStack networking\")), mdx(\"h3\", null, \"Connect with AWS CLI v2 or awslocal\"), mdx(\"p\", null, \"Open a dedicated shell for the demo. Use the same region and credentials throughout so the CLI and both SDKs see the same tables. The function keeps the endpoint explicit on every request. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-endpoints.html\"\n  }, \"AWS CLI endpoint configuration\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/connecting/aws-cli/\"\n  }, \"LocalStack CLI configuration\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"unset AWS_PROFILE AWS_DEFAULT_PROFILE AWS_SESSION_TOKEN AWS_SECURITY_TOKEN\\nexport AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test\\nexport AWS_DEFAULT_REGION=us-east-1 AWS_PAGER=\\\"\\\"\\n\\naws_local() {\\n  aws --endpoint-url http://localhost:4566 --region us-east-1 \\\"$@\\\"\\n}\\n\\naws_local dynamodb list-tables\\n\")), mdx(\"p\", null, \"For existing scripts that use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"awslocal\"), \", install the wrapper into a virtual environment alongside the already installed AWS CLI v2. LocalStack now deprecates \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"awslocal\"), \" in favor of \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"lstk aws\"), \", and the older wrapper still works for these DynamoDB commands. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/connecting/infrastructure-as-code/deprecated-wrapper-scripts/#awslocal\"\n  }, \"LocalStack wrapper documentation\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"python3 -m venv .venv\\n.venv/bin/pip install awscli-local\\nAWS_ENDPOINT_URL=http://localhost:4566 .venv/bin/awslocal dynamodb list-tables\\n\")), mdx(\"h2\", null, \"Create a table, put an item, query and scan\"), mdx(\"p\", null, \"Create an on-demand \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Orders\"), \" table with string keys \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"customerId\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orderId\"), \". Enable \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"NEW_IMAGE\"), \" so the same table works for the Lambda example below. Run this on a fresh instance, or use the startup hook later in the guide to create the table automatically. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/cli/latest/userguide/bash_dynamodb_code_examples.html\"\n  }, \"AWS CLI DynamoDB examples\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"aws_local dynamodb create-table \\\\\\n  --table-name Orders \\\\\\n  --attribute-definitions AttributeName=customerId,AttributeType=S AttributeName=orderId,AttributeType=S \\\\\\n  --key-schema AttributeName=customerId,KeyType=HASH AttributeName=orderId,KeyType=RANGE \\\\\\n  --billing-mode PAY_PER_REQUEST \\\\\\n  --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE\\n\\naws_local dynamodb wait table-exists --table-name Orders\\n\\naws_local dynamodb put-item --table-name Orders \\\\\\n  --item '{\\\"customerId\\\":{\\\"S\\\":\\\"customer-42\\\"},\\\"orderId\\\":{\\\"S\\\":\\\"order-100\\\"},\\\"status\\\":{\\\"S\\\":\\\"PLACED\\\"}}'\\n\\naws_local dynamodb query --table-name Orders \\\\\\n  --key-condition-expression 'customerId = :customer' \\\\\\n  --expression-attribute-values '{\\\":customer\\\":{\\\"S\\\":\\\"customer-42\\\"}}' \\\\\\n  --consistent-read --query 'Items'\\n\\naws_local dynamodb scan --table-name Orders --query 'Items'\\n\")), mdx(\"p\", null, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Query\"), \" targets a partition key and can narrow results by sort key. \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Scan\"), \" reads across the table or index, so use it to inspect a small test table and use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Query\"), \" for customer order lookups. Both AWS APIs return paginated results. The AWS CLI paginates by default. In SDK code, use \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-errors/dynamodb-exclusivestartkey-not-working/\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"LastEvaluatedKey\"), \" to continue\"), \" when you need every result. To inspect the table visually, see the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-local-admin-gui/\"\n  }, \"local DynamoDB GUI setup\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html\"\n  }, \"AWS Query guide\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html\"\n  }, \"AWS Scan guide\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html\"\n  }, \"AWS CLI pagination\")), mdx(\"h3\", null, \"AWS SDK for JavaScript v3\"), mdx(\"p\", null, \"Install \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"@aws-sdk/client-dynamodb\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"@aws-sdk/lib-dynamodb\"), \" with npm in your demo directory. Save this as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orders.mjs\"), \" and run \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"node orders.mjs\"), \". The \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-documentclient/\"\n  }, \"document client\"), \" converts native JavaScript values to and from DynamoDB attribute values. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/programming-with-javascript.html\"\n  }, \"AWS JavaScript DynamoDB guide\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-js\"\n  }, \"import { DynamoDBClient } from \\\"@aws-sdk/client-dynamodb\\\"\\nimport { DynamoDBDocumentClient, QueryCommand } from \\\"@aws-sdk/lib-dynamodb\\\"\\n\\nconst client = DynamoDBDocumentClient.from(new DynamoDBClient({\\n  endpoint: \\\"http://localhost:4566\\\",\\n  region: \\\"us-east-1\\\",\\n  credentials: { accessKeyId: \\\"test\\\", secretAccessKey: \\\"test\\\" },\\n}))\\n\\nconst result = await client.send(new QueryCommand({\\n  TableName: \\\"Orders\\\",\\n  KeyConditionExpression: \\\"customerId = :customer\\\",\\n  ExpressionAttributeValues: { \\\":customer\\\": \\\"customer-42\\\" },\\n  ConsistentRead: true,\\n}))\\nconsole.log(result.Items)\\n\")), mdx(\"h3\", null, \"Python with boto3\"), mdx(\"p\", null, \"If you skipped the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"awslocal\"), \" example, create a virtual environment with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"python3 -m venv .venv\"), \". Install \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"boto3\"), \" with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \".venv/bin/pip install boto3\"), \", save this as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orders.py\"), \", and run \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \".venv/bin/python orders.py\"), \". The low-level boto3 client uses DynamoDB's typed attribute values, just like the CLI command above. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/boto3/latest/reference/core/session.html\"\n  }, \"Boto3 session and endpoint reference\"), \" If Python reports \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-errors/importerror-no-module-named-boto-dynamodb/\"\n  }, \"No module named boto3\"), \", check the interpreter running the script.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import boto3\\n\\nclient = boto3.client(\\n    \\\"dynamodb\\\",\\n    endpoint_url=\\\"http://localhost:4566\\\",\\n    region_name=\\\"us-east-1\\\",\\n    aws_access_key_id=\\\"test\\\",\\n    aws_secret_access_key=\\\"test\\\",\\n)\\n\\nresponse = client.query(\\n    TableName=\\\"Orders\\\",\\n    KeyConditionExpression=\\\"customerId = :customer\\\",\\n    ExpressionAttributeValues={\\\":customer\\\": {\\\"S\\\": \\\"customer-42\\\"}},\\n    ConsistentRead=True,\\n)\\nprint(response[\\\"Items\\\"])\\n\")), mdx(\"h2\", null, \"Persist DynamoDB data between restarts\"), mdx(\"p\", null, \"If your plan includes local persistence, export \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ORDERS_PERSISTENCE=1\"), \" \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"before\"), \" starting the container and writing data. That sets \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"PERSISTENCE=1\"), \" inside the container, and the named volume keeps \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/var/lib/localstack\"), \" across container replacement. The default backend stores persistent DynamoDB state in the volume's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"state/dynamodb/ddb.sqlite\"), \" file. Leave \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"DYNAMODB_IN_MEMORY\"), \" off. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/developer-tools/snapshots/persistence/\"\n  }, \"LocalStack persistence\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/dynamodb/#persistence\"\n  }, \"DynamoDB storage\")), mdx(\"p\", null, \"To verify persistence, start with that setting, create the table, write an order, then run \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"docker compose restart localstack\"), \". Rerun the query after startup and check the order is still present. Keep the same Compose project and volume if you recreate the container. \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"docker compose down -v\"), \" deletes the named volume. On Hobby, use a startup hook to rebuild your test schema each time. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.docker.com/reference/cli/docker/compose/down/\"\n  }, \"Docker Compose down\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/licensing/\"\n  }, \"LocalStack plans\")), mdx(\"h2\", null, \"Trigger a local Lambda from DynamoDB Streams\"), mdx(\"p\", null, \"LocalStack supports DynamoDB Streams as a Lambda event source. Lambda polls the stream and hands a batch of records to the function. The example uses the stream on \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Orders\"), \" and the Docker socket mount from the Compose file. See the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-streams/\"\n  }, \"DynamoDB Streams guide\"), \" for stream view types and record structure. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/dynamodbstreams/\"\n  }, \"LocalStack Streams walkthrough\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/lambda/latest/dg/services-dynamodb-eventsourcemapping.html\"\n  }, \"AWS Lambda event source mapping\")), mdx(\"p\", null, \"Save this handler as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"orders_audit.py\"), \". It logs the keys for each change and the new image when one is present. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.Tutorial.html\"\n  }, \"AWS tutorial for processing DynamoDB records with Lambda\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import json\\n\\n\\ndef handler(event, context):\\n    for record in event[\\\"Records\\\"]:\\n        change = record[\\\"dynamodb\\\"]\\n        print(json.dumps({\\n            \\\"action\\\": record[\\\"eventName\\\"],\\n            \\\"keys\\\": change[\\\"Keys\\\"],\\n            \\\"order\\\": change.get(\\\"NewImage\\\"),\\n        }))\\n\")), mdx(\"p\", null, \"Package the handler, create an execution role, and attach the AWS-managed policy for reading stream records and writing function logs. Use the ARN returned by \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"DescribeTable\"), \" to wire up the trigger. \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"TRIM_HORIZON\"), \" starts at the oldest available record, so the first order may appear in the logs alongside the new test write. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSLambdaDynamoDBExecutionRole.html\"\n  }, \"AWS Lambda execution role policy\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html\"\n  }, \"AWS Lambda supported runtimes\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-bash\"\n  }, \"zip -j orders-audit.zip orders_audit.py\\n\\nROLE_ARN=$(aws_local iam create-role --role-name OrdersAuditRole \\\\\\n  --assume-role-policy-document '{\\\"Version\\\":\\\"2012-10-17\\\",\\\"Statement\\\":[{\\\"Effect\\\":\\\"Allow\\\",\\\"Principal\\\":{\\\"Service\\\":\\\"lambda.amazonaws.com\\\"},\\\"Action\\\":\\\"sts:AssumeRole\\\"}]}' \\\\\\n  --query 'Role.Arn' --output text)\\n\\naws_local iam attach-role-policy --role-name OrdersAuditRole \\\\\\n  --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaDynamoDBExecutionRole\\n\\naws_local lambda create-function --function-name orders-audit \\\\\\n  --runtime python3.12 --handler orders_audit.handler \\\\\\n  --role \\\"$ROLE_ARN\\\" --zip-file fileb://orders-audit.zip\\naws_local lambda wait function-active-v2 --function-name orders-audit\\n\\nSTREAM_ARN=$(aws_local dynamodb describe-table --table-name Orders \\\\\\n  --query 'Table.LatestStreamArn' --output text)\\n\\naws_local lambda create-event-source-mapping --function-name orders-audit \\\\\\n  --event-source-arn \\\"$STREAM_ARN\\\" --starting-position TRIM_HORIZON\\n\\naws_local dynamodb put-item --table-name Orders \\\\\\n  --item '{\\\"customerId\\\":{\\\"S\\\":\\\"customer-42\\\"},\\\"orderId\\\":{\\\"S\\\":\\\"order-101\\\"},\\\"status\\\":{\\\"S\\\":\\\"PLACED\\\"}}'\\n\")), mdx(\"p\", null, \"Look for \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"order-101\"), \" with \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"aws_local logs tail /aws/lambda/orders-audit --since 10m\"), \". If the log group is missing immediately after the write, give the mapping time to start and poll, then rerun the command. Use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"aws_local lambda list-event-source-mappings --function-name orders-audit\"), \" to check the mapping state. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html\"\n  }, \"AWS Lambda function logs\")), mdx(\"h2\", null, \"Create tables on startup with a ready hook\"), mdx(\"p\", null, \"Mount a Python script in LocalStack's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ready.d\"), \" directory to create the same schema on each clean start. The hook catches \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ResourceInUseException\"), \" so restarting with a persisted \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Orders\"), \" table preserves it. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/customization/advanced/initialization-hooks/\"\n  }, \"LocalStack initialization hooks\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html\"\n  }, \"AWS CreateTable reference\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# init-orders.py\\nimport boto3\\n\\nclient = boto3.client(\\n    \\\"dynamodb\\\",\\n    endpoint_url=\\\"http://localhost:4566\\\",\\n    region_name=\\\"us-east-1\\\",\\n    aws_access_key_id=\\\"test\\\",\\n    aws_secret_access_key=\\\"test\\\",\\n)\\n\\ntry:\\n    client.create_table(\\n        TableName=\\\"Orders\\\",\\n        AttributeDefinitions=[\\n            {\\\"AttributeName\\\": \\\"customerId\\\", \\\"AttributeType\\\": \\\"S\\\"},\\n            {\\\"AttributeName\\\": \\\"orderId\\\", \\\"AttributeType\\\": \\\"S\\\"},\\n        ],\\n        KeySchema=[\\n            {\\\"AttributeName\\\": \\\"customerId\\\", \\\"KeyType\\\": \\\"HASH\\\"},\\n            {\\\"AttributeName\\\": \\\"orderId\\\", \\\"KeyType\\\": \\\"RANGE\\\"},\\n        ],\\n        BillingMode=\\\"PAY_PER_REQUEST\\\",\\n        StreamSpecification={\\\"StreamEnabled\\\": True, \\\"StreamViewType\\\": \\\"NEW_IMAGE\\\"},\\n    )\\nexcept client.exceptions.ResourceInUseException:\\n    pass\\n\\nclient.get_waiter(\\\"table_exists\\\").wait(TableName=\\\"Orders\\\")\\n\")), mdx(\"p\", null, \"Add the following line under \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"services.localstack.volumes\"), \" in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"compose.yaml\"), \", then run \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"chmod +x init-orders.py\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"docker compose up -d\"), \". Check \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"http://localhost:4566/_localstack/init/ready\"), \" and look for the script's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"SUCCESSFUL\"), \" state before running tests. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/customization/advanced/initialization-hooks/#status-endpoint\"\n  }, \"LocalStack init hook status\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-yaml\"\n  }, \"      - ./init-orders.py:/etc/localstack/init/ready.d/init-orders.py:ro\\n\")), mdx(\"p\", null, \"If your project already manages tables as infrastructure as code, run the existing Terraform apply or \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-aws-cdk/\"\n  }, \"CDK deploy\"), \" after LocalStack is ready. The older \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"tflocal\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"cdklocal\"), \" wrappers are deprecated. LocalStack documents \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"lstk terraform\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"lstk cdk\"), \" as their replacements. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/connecting/infrastructure-as-code/terraform/\"\n  }, \"LocalStack Terraform setup\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/connecting/infrastructure-as-code/aws-cdk/\"\n  }, \"LocalStack CDK setup\")), mdx(\"h2\", null, \"LocalStack vs. DynamoDB Local vs. a real AWS dev account\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Option\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Fidelity\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Features\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Cost\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"CI use\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"LocalStack\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Emulates AWS APIs with documented coverage and behavioral gaps\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"DynamoDB, Streams, local Lambda event source mappings, persistence on eligible plans\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Free Hobby for non-commercial use, paid commercial plans\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Test supported cross-service flows using a CI Auth Token\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"DynamoDB Local\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"AWS's downloadable emulator. It ignores provisioned throughput and runs without table partitioning\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"DynamoDB APIs and local Streams support. Lambda execution needs a separate runtime\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Free download\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Test data access and schema with a disposable database\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"AWS dev account\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Runs actual AWS services under the account's IAM policies and quotas\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Managed DynamoDB, Streams, Lambda and AWS operational features\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"AWS service pricing applies\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Test deployed IAM, event delivery and managed-service behavior\")))), mdx(\"p\", null, \"Use \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/run-dynamodb-locally/\"\n  }, \"DynamoDB Local\"), \" for table and query tests, LocalStack for supported workflows spanning services, and a real AWS account for checks that depend on managed-service behavior. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html\"\n  }, \"AWS DynamoDB Local limitations\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html\"\n  }, \"AWS DynamoDB Local downloads\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://aws.amazon.com/dynamodb/pricing/\"\n  }, \"AWS DynamoDB pricing\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/dynamodb/\"\n  }, \"LocalStack service coverage\")), mdx(\"h2\", null, \"Run a DynamoDB smoke test in GitHub Actions\"), mdx(\"p\", null, \"Save this workflow as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \".github/workflows/localstack-dynamodb.yml\"), \" and add a workspace CI Auth Token to repository secrets as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"LOCALSTACK_AUTH_TOKEN\"), \". The Ubuntu job maps the service container's gateway to localhost, waits for a DynamoDB API response, writes a row, and verifies it with a query. The standard Ubuntu runner supplies the AWS CLI. \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/ci-pipelines/github-actions/\"\n  }, \"LocalStack GitHub Actions guide\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idservices\"\n  }, \"GitHub Actions service containers\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-yaml\"\n  }, \"name: LocalStack DynamoDB\\non: [push, workflow_dispatch]\\n\\njobs:\\n  dynamodb:\\n    runs-on: ubuntu-latest\\n    services:\\n      localstack:\\n        image: localstack/localstack:2026.10.0\\n        env:\\n          LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}\\n        ports:\\n          - \\\"4566:4566\\\"\\n    env:\\n      AWS_ACCESS_KEY_ID: test\\n      AWS_SECRET_ACCESS_KEY: test\\n      AWS_DEFAULT_REGION: us-east-1\\n      AWS_PAGER: \\\"\\\"\\n    steps:\\n      - name: Create, write and query a table\\n        shell: bash\\n        run: |\\n          aws_local() { aws --endpoint-url http://localhost:4566 \\\"$@\\\"; }\\n          for attempt in {1..30}; do\\n            if AWS_MAX_ATTEMPTS=1 aws_local --cli-connect-timeout 2 --cli-read-timeout 3 \\\\\\n                dynamodb list-tables >/dev/null 2>&1; then\\n              break\\n            fi\\n            sleep 2\\n          done\\n          AWS_MAX_ATTEMPTS=1 aws_local --cli-connect-timeout 2 --cli-read-timeout 3 dynamodb list-tables\\n          aws_local dynamodb create-table --table-name Orders \\\\\\n            --attribute-definitions AttributeName=customerId,AttributeType=S AttributeName=orderId,AttributeType=S \\\\\\n            --key-schema AttributeName=customerId,KeyType=HASH AttributeName=orderId,KeyType=RANGE \\\\\\n            --billing-mode PAY_PER_REQUEST\\n          aws_local dynamodb wait table-exists --table-name Orders\\n          aws_local dynamodb put-item --table-name Orders \\\\\\n            --item '{\\\"customerId\\\":{\\\"S\\\":\\\"customer-42\\\"},\\\"orderId\\\":{\\\"S\\\":\\\"order-100\\\"},\\\"status\\\":{\\\"S\\\":\\\"PLACED\\\"}}'\\n          status=$(aws_local dynamodb query --table-name Orders --consistent-read \\\\\\n            --key-condition-expression 'customerId = :customer' \\\\\\n            --expression-attribute-values '{\\\":customer\\\":{\\\"S\\\":\\\"customer-42\\\"}}' \\\\\\n            --query 'Items[0].status.S' --output text)\\n          test \\\"$status\\\" = PLACED\\n\")), mdx(\"h2\", null, \"Common LocalStack DynamoDB problems\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Symptom\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"What to check\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"a\", {\n    parentName: \"td\",\n    \"href\": \"/dynamodb-errors/could-not-connect-to-the-endpoint-url-dynamodb/\"\n  }, \"Connection refused or timeout\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Check \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"docker compose ps\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"docker compose logs localstack\"), \". Confirm port \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"4566\"), \" is published. From a peer Compose service, use the service hostname.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"LocalStack exits on startup\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Check for a missing \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"LOCALSTACK_AUTH_TOKEN\"), \", an expired license or a license that has yet to be assigned.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"a\", {\n    parentName: \"td\",\n    \"href\": \"/dynamodb-errors/dynamodb-table-not-exists/\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"a\"\n  }, \"ResourceNotFoundException\"))), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Check the endpoint, region and credentials with \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"aws_local dynamodb list-tables\"), \". If using a ready hook, check the hook status.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Table data disappears\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Check the plan's persistence entitlement, \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"PERSISTENCE=1\"), \", the named volume and the \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"DYNAMODB_IN_MEMORY\"), \" setting.\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, mdx(\"a\", {\n    parentName: \"td\",\n    \"href\": \"/dynamodb-errors/dynamodb-stream-no-records-processed/\"\n  }, \"Lambda receives no records\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Check the Docker socket mount, \", mdx(\"inlineCode\", {\n    parentName: \"td\"\n  }, \"LatestStreamArn\"), \", event source mapping state and function logs. Put a fresh item to produce another stream record.\")))), mdx(\"p\", null, \"For a step-by-step diagnosis, see \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/dynamodb-errors/localstack-dynamodb-not-working/\"\n  }, \"LocalStack DynamoDB not working\"), \". \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/getting-started/auth-token/#troubleshooting\"\n  }, \"LocalStack auth troubleshooting\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/customization/networking/accessing-endpoint-url/\"\n  }, \"LocalStack endpoint networking\"), \" \\xB7 \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.localstack.cloud/aws/services/lambda/\"\n  }, \"LocalStack Lambda support\")), mdx(FAQ, {\n    questions: [{\n      question: \"What is the LocalStack DynamoDB endpoint?\",\n      answer: \"Use http://localhost:4566 from the host. From another service in the same Compose project, use http://localstack:4566 when the Compose service is named localstack.\"\n    }, {\n      question: \"Does LocalStack still run DynamoDB Local internally?\",\n      answer: \"Since release 2026.09.0, LocalStack defaults to its own Rust-based DynamoDB and Streams emulator on every plan. DynamoDB Local is available as a deprecated legacy provider on paid plans.\"\n    }, {\n      question: \"Can I run the current LocalStack image without an auth token?\",\n      answer: \"The unified image has required a valid LocalStack auth token since release 2026.03.0 on March 23, 2026. The free, non-commercial Hobby plan also requires a token.\"\n    }, {\n      question: \"Can I keep LocalStack DynamoDB data after restarting Docker?\",\n      answer: \"On a plan with local persistence, enable PERSISTENCE=1 and mount a volume at /var/lib/localstack. Keep the volume and leave DynamoDB in-memory mode disabled.\"\n    }, {\n      question: \"Can LocalStack trigger Lambda from DynamoDB Streams?\",\n      answer: \"Yes. Enable the table stream, create a Lambda function and configure an event source mapping with the table's stream ARN. Mount the Docker socket so LocalStack can launch the Lambda runtime.\"\n    }],\n    mdxType: \"FAQ\"\n  }));\n}\n;\nMDXContent.isMDXComponent = true;","frontmatter":{"publishedDate":"2026-11-20","updatedDate":"2026-11-20","path":"/dynamodb-localstack/","metaTitle":"LocalStack DynamoDB: Docker Compose, SDKs, Streams and CI","metaDescription":"Run DynamoDB in LocalStack with Docker Compose. Configure the AWS CLI and SDKs, persist data, trigger Lambda from Streams, and test in GitHub Actions.","title":"Run DynamoDB in LocalStack with Docker Compose","authorName":"Rafal Wilinski","authorLink":"https://x.com/rafalwilinski","authorImage":"/images/authors/rafal-wilinski.jpg","image":null}}},"pageContext":{}},
    "staticQueryHashes": ["3649515864"]}