DynamoDB replication pause
Pause cross-region replication on one or more Amazon DynamoDB global tables for a configurable duration using an AWS Fault Injection Service (FIS) experiment so you can test how your application handl
DynamoDB replication pause is an AWS chaos fault that pauses cross-region replication for the DynamoDB global tables listed in TABLE_NAMES for TOTAL_CHAOS_DURATION seconds by launching an AWS Fault Injection Service (FIS) experiment using the aws:dynamodb:global-table-pause-replication action. While replication is paused, writes accepted by the primary region are not propagated to the replica regions; once the FIS experiment ends, replication resumes and the table catches up.
Use this fault to test how a multi-region workload built on DynamoDB global tables behaves when replication is briefly paused: whether the application tolerates eventual-consistency lag spikes, whether failover decisions are robust, and whether monitoring detects the replication gap within the SLA.
Use cases
Run this fault when you want to answer concrete questions like:
Replication lag tolerance: Does your application's eventual-consistency model gracefully tolerate a temporary increase in replication lag?
Monitoring fidelity: Do CloudWatch alarms on
ReplicationLatency(or your own application lag metric) fire within the SLA?Cross-region read safety: Do replica-region reads still serve consistent data for application-level read patterns, or do clients need to fall back to the primary region?
Failover decisioning: Does any cross-region failover automation correctly avoid false positives during a temporary replication pause?
Recovery: When replication resumes, does the table catch up within the expected window without operator intervention?
Prerequisites
Kubernetes version: 1.21 or later for the chaos infrastructure cluster. Go to What's supported to confirm distribution support.
Global tables: Every entry in
TABLE_NAMESis a DynamoDB global table with at least two replicas across regions.AWS Fault Injection Service available: FIS is supported in
REGIONand your account is opted in to use theaws:dynamodb:global-table-pause-replicationaction.FIS execution role: A pre-existing IAM role at
FIS_ROLE_ARNthat FIS can assume, with permission to call the DynamoDB pause/resume replication actions on the target tables.FIS account:
FIS_ACCOUNT_IDis the AWS account ID where the FIS experiment runs.Optional stop conditions: Define CloudWatch alarms in
STOP_CONDITION_CLOUDWATCH_ALARMSto terminate the FIS experiment early when application-level guardrails breach.AWS credentials available: Either an AWS credentials file uploaded as a File Secret in Harness Secret Manager (see Authentication below) or an IAM role for service accounts (IRSA) bound to the chaos infrastructure service account.
IAM permissions granted: The credentials or role include the permissions listed below.
Supported environments
DynamoDB global tables (v2) in any commercial region where FIS supports the action
Supported
DynamoDB non-global tables
Not applicable
AWS GovCloud / China regions
Subject to FIS availability in those regions
Permissions required
The fault uses two IAM identities:
The chaos pod's principal (the credentials mounted from the Harness Secret Manager file secret, the IRSA role on the chaos service account, or the role assumed via
ASSUME_ROLE_ARN) needs the permissions below to drive the FIS experiment.The FIS execution role at
FIS_ROLE_ARNneeds DynamoDB permissions for the pause/resume action; AWS publishes the exact permission set for theaws:dynamodb:global-table-pause-replicationaction.
Go to common policy for all AWS faults to use a single superset IAM policy across every AWS fault.
Authentication
The fault supports three credential delivery models for the chaos pod's principal. Pick one based on how your chaos infrastructure is deployed.
Harness Secret Manager file secret
Chaos infrastructure runs outside EKS, or you want explicit static credentials
Upload the AWS credentials file as a File Secret in Harness Secret Manager and reference its identifier via AWS_AUTHENTICATION_SECRET
IAM Roles for Service Accounts (IRSA)
Chaos infrastructure runs in EKS and uses an OIDC-bound service account
No tunable changes; the chaos pod inherits the role automatically. Go to AWS IAM integration to set it up
Assume role
The fault needs to act in a different account or with elevated permissions
Set ASSUME_ROLE_ARN to the role ARN; the chaos pod assumes the role on top of its base credentials
When using the Harness Secret Manager method, the contents of the File Secret should be the AWS credentials file in the standard ~/.aws/credentials format:
Upload this file as a File Secret in Harness Secret Manager (Project Setup → Secrets → New File Secret), and pass the secret identifier in AWS_AUTHENTICATION_SECRET when configuring the fault.
Fault tunables
Configure the following fault parameters when you add DynamoDB replication pause to an experiment in Chaos Studio. Defaults are shown for reference.
Required parameters
TABLE_NAMES
Comma-separated list of DynamoDB global table names whose replication should be paused.
(required)
REGION
AWS region where the FIS experiment runs.
(required)
FIS_ROLE_ARN
ARN of the pre-existing IAM role that AWS FIS assumes to perform the replication pause action.
(required)
FIS_ACCOUNT_ID
AWS account ID under which the FIS experiment runs.
(required)
Chaos parameters
TOTAL_CHAOS_DURATION
Duration of the fault in seconds (passed to the FIS experiment as the action duration).
30
CHAOS_INTERVAL
Delay in seconds between successive iterations when running for more than one cycle.
30
COUNT
Number of tables to affect when more than one is listed. Use 0 to affect every table.
0
STOP_CONDITION_CLOUDWATCH_ALARMS
Comma-separated list of CloudWatch alarm ARNs that terminate the FIS experiment early when any alarm enters ALARM state.
""
RAMP_TIME
Wait period in seconds before and after the fault. Go to ramp time to read how it is applied.
0
Authentication
ASSUME_ROLE_ARN
ARN of an IAM role to assume on top of the base credentials. Leave empty to use the base credentials directly.
""
AWS_AUTHENTICATION_SECRET
Identifier of the File Secret in Harness Secret Manager that contains the AWS credentials file. Not required when using IRSA.
""
Tunables that apply to every fault are documented in common tunables for all faults.
Fault execution in brief
Creates an AWS FIS experiment template that targets TABLE_NAMES with the aws:dynamodb:global-table-pause-replication action for TOTAL_CHAOS_DURATION seconds (with optional STOP_CONDITION_CLOUDWATCH_ALARMS), starts the experiment, waits for it to complete, then deletes the experiment template.
Expected behavior during fault execution
Writes accepted by the primary region of each affected global table stop being propagated to replica regions for the duration of the experiment.
CloudWatch metric
ReplicationLatencyfor each affected replica rises sharply.Reads from replica regions return data that lags the primary region by an amount that grows over the chaos window.
Application-level lag metrics (last-update timestamp, version vector skew) drift while the experiment runs.
Signals to watch
Attach resilience probes to assert each layer:
Replication latency: Use a Prometheus probe on
aws_dynamodb_replication_latencyper replica region.Application lag metrics: Use a Prometheus probe on your own consistency-lag counter.
End-to-end correctness: Use an HTTP probe or command probe that performs a write in one region and reads from another to assert lag stays inside the SLO.
Verify the fault execution effect
While the experiment is running, confirm the pause is active and then released:
Track the FIS experiment.
The FIS experiment should be
runningduring the chaos window andcompletedafterwards.Check replication latency.
Maximum should rise during the chaos window and return to baseline afterwards.
Verify replica catches up.
Perform a write in the primary region, then read from each replica region. Within a few minutes after the experiment ends, the replica should return the latest write.
Recovery and cleanup
End of duration: FIS stops the action and DynamoDB resumes replication; the chaos pod deletes the FIS experiment template it created.
Abort the experiment: Stopping the experiment from Chaos Studio also stops the FIS experiment.
Manual recovery: If the FIS experiment is stuck, run
aws fis stop-experiment --id <id> --region <region>to terminate it; AWS will resume replication automatically when the action stops.Workload recovery: Replica regions catch up at the natural replication rate; no operator action is required.
Limitations
Action duration: AWS FIS defines a minimum and maximum duration for the action; values outside that range are rejected.
Per-region: A single experiment runs in one
REGION; chain experiments to test multi-primary topologies.FIS availability: This fault depends on FIS being available in
REGIONand on theaws:dynamodb:global-table-pause-replicationaction being supported in that region.Stop conditions: When
STOP_CONDITION_CLOUDWATCH_ALARMSis provided, an alarm transitioning toALARMterminates the action; replication resumes early.Cross-account targeting: Use
ASSUME_ROLE_ARNto run the FIS experiment in a different account.
Troubleshooting
Related faults
Generic FIS experiment template: Run any pre-built FIS experiment by template ID.
Lambda inject latency: Add latency to a Lambda function instead of pausing replication.
Common AWS fault tunables: Shared environment variables for AWS faults.
Last updated
Was this helpful?