1. Packages
  2. AWS
  3. API Docs
  4. dynamodb
  5. TableReplica
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.dynamodb.TableReplica

Explore with Pulumi AI

Provides a DynamoDB table replica resource for DynamoDB Global Tables V2 (version 2019.11.21).

Note: Use lifecycle ignore_changes for replica in the associated aws.dynamodb.Table configuration.

Note: Do not use the replica configuration block of aws.dynamodb.Table together with this resource as the two configuration options are mutually exclusive.

Example Usage

Basic Example

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.dynamodb.Table("example", {
    name: "TestTable",
    hashKey: "BrodoBaggins",
    billingMode: "PAY_PER_REQUEST",
    streamEnabled: true,
    streamViewType: "NEW_AND_OLD_IMAGES",
    attributes: [{
        name: "BrodoBaggins",
        type: "S",
    }],
});
const exampleTableReplica = new aws.dynamodb.TableReplica("example", {
    globalTableArn: example.arn,
    tags: {
        Name: "IZPAWS",
        Pozo: "Amargo",
    },
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.dynamodb.Table("example",
    name="TestTable",
    hash_key="BrodoBaggins",
    billing_mode="PAY_PER_REQUEST",
    stream_enabled=True,
    stream_view_type="NEW_AND_OLD_IMAGES",
    attributes=[{
        "name": "BrodoBaggins",
        "type": "S",
    }])
example_table_replica = aws.dynamodb.TableReplica("example",
    global_table_arn=example.arn,
    tags={
        "Name": "IZPAWS",
        "Pozo": "Amargo",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dynamodb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dynamodb.NewTable(ctx, "example", &dynamodb.TableArgs{
			Name:           pulumi.String("TestTable"),
			HashKey:        pulumi.String("BrodoBaggins"),
			BillingMode:    pulumi.String("PAY_PER_REQUEST"),
			StreamEnabled:  pulumi.Bool(true),
			StreamViewType: pulumi.String("NEW_AND_OLD_IMAGES"),
			Attributes: dynamodb.TableAttributeArray{
				&dynamodb.TableAttributeArgs{
					Name: pulumi.String("BrodoBaggins"),
					Type: pulumi.String("S"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = dynamodb.NewTableReplica(ctx, "example", &dynamodb.TableReplicaArgs{
			GlobalTableArn: example.Arn,
			Tags: pulumi.StringMap{
				"Name": pulumi.String("IZPAWS"),
				"Pozo": pulumi.String("Amargo"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.DynamoDB.Table("example", new()
    {
        Name = "TestTable",
        HashKey = "BrodoBaggins",
        BillingMode = "PAY_PER_REQUEST",
        StreamEnabled = true,
        StreamViewType = "NEW_AND_OLD_IMAGES",
        Attributes = new[]
        {
            new Aws.DynamoDB.Inputs.TableAttributeArgs
            {
                Name = "BrodoBaggins",
                Type = "S",
            },
        },
    });

    var exampleTableReplica = new Aws.DynamoDB.TableReplica("example", new()
    {
        GlobalTableArn = example.Arn,
        Tags = 
        {
            { "Name", "IZPAWS" },
            { "Pozo", "Amargo" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dynamodb.Table;
import com.pulumi.aws.dynamodb.TableArgs;
import com.pulumi.aws.dynamodb.inputs.TableAttributeArgs;
import com.pulumi.aws.dynamodb.TableReplica;
import com.pulumi.aws.dynamodb.TableReplicaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Table("example", TableArgs.builder()
            .name("TestTable")
            .hashKey("BrodoBaggins")
            .billingMode("PAY_PER_REQUEST")
            .streamEnabled(true)
            .streamViewType("NEW_AND_OLD_IMAGES")
            .attributes(TableAttributeArgs.builder()
                .name("BrodoBaggins")
                .type("S")
                .build())
            .build());

        var exampleTableReplica = new TableReplica("exampleTableReplica", TableReplicaArgs.builder()
            .globalTableArn(example.arn())
            .tags(Map.ofEntries(
                Map.entry("Name", "IZPAWS"),
                Map.entry("Pozo", "Amargo")
            ))
            .build());

    }
}
Copy
resources:
  example:
    type: aws:dynamodb:Table
    properties:
      name: TestTable
      hashKey: BrodoBaggins
      billingMode: PAY_PER_REQUEST
      streamEnabled: true
      streamViewType: NEW_AND_OLD_IMAGES
      attributes:
        - name: BrodoBaggins
          type: S
  exampleTableReplica:
    type: aws:dynamodb:TableReplica
    name: example
    properties:
      globalTableArn: ${example.arn}
      tags:
        Name: IZPAWS
        Pozo: Amargo
Copy

Create TableReplica Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TableReplica(name: string, args: TableReplicaArgs, opts?: CustomResourceOptions);
@overload
def TableReplica(resource_name: str,
                 args: TableReplicaInitArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def TableReplica(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 global_table_arn: Optional[str] = None,
                 deletion_protection_enabled: Optional[bool] = None,
                 kms_key_arn: Optional[str] = None,
                 point_in_time_recovery: Optional[bool] = None,
                 table_class_override: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None)
func NewTableReplica(ctx *Context, name string, args TableReplicaArgs, opts ...ResourceOption) (*TableReplica, error)
public TableReplica(string name, TableReplicaArgs args, CustomResourceOptions? opts = null)
public TableReplica(String name, TableReplicaArgs args)
public TableReplica(String name, TableReplicaArgs args, CustomResourceOptions options)
type: aws:dynamodb:TableReplica
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TableReplicaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TableReplicaInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TableReplicaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TableReplicaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TableReplicaArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var tableReplicaResource = new Aws.DynamoDB.TableReplica("tableReplicaResource", new()
{
    GlobalTableArn = "string",
    DeletionProtectionEnabled = false,
    KmsKeyArn = "string",
    PointInTimeRecovery = false,
    TableClassOverride = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := dynamodb.NewTableReplica(ctx, "tableReplicaResource", &dynamodb.TableReplicaArgs{
	GlobalTableArn:            pulumi.String("string"),
	DeletionProtectionEnabled: pulumi.Bool(false),
	KmsKeyArn:                 pulumi.String("string"),
	PointInTimeRecovery:       pulumi.Bool(false),
	TableClassOverride:        pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var tableReplicaResource = new TableReplica("tableReplicaResource", TableReplicaArgs.builder()
    .globalTableArn("string")
    .deletionProtectionEnabled(false)
    .kmsKeyArn("string")
    .pointInTimeRecovery(false)
    .tableClassOverride("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
table_replica_resource = aws.dynamodb.TableReplica("tableReplicaResource",
    global_table_arn="string",
    deletion_protection_enabled=False,
    kms_key_arn="string",
    point_in_time_recovery=False,
    table_class_override="string",
    tags={
        "string": "string",
    })
Copy
const tableReplicaResource = new aws.dynamodb.TableReplica("tableReplicaResource", {
    globalTableArn: "string",
    deletionProtectionEnabled: false,
    kmsKeyArn: "string",
    pointInTimeRecovery: false,
    tableClassOverride: "string",
    tags: {
        string: "string",
    },
});
Copy
type: aws:dynamodb:TableReplica
properties:
    deletionProtectionEnabled: false
    globalTableArn: string
    kmsKeyArn: string
    pointInTimeRecovery: false
    tableClassOverride: string
    tags:
        string: string
Copy

TableReplica Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TableReplica resource accepts the following input properties:

GlobalTableArn
This property is required.
Changes to this property will trigger replacement.
string

ARN of the main or global table which this resource will replicate.

Optional arguments:

DeletionProtectionEnabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
KmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
PointInTimeRecovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
TableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
Tags Dictionary<string, string>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
GlobalTableArn
This property is required.
Changes to this property will trigger replacement.
string

ARN of the main or global table which this resource will replicate.

Optional arguments:

DeletionProtectionEnabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
KmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
PointInTimeRecovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
TableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
Tags map[string]string
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
globalTableArn
This property is required.
Changes to this property will trigger replacement.
String

ARN of the main or global table which this resource will replicate.

Optional arguments:

deletionProtectionEnabled Boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
kmsKeyArn Changes to this property will trigger replacement. String
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery Boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. String
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Map<String,String>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
globalTableArn
This property is required.
Changes to this property will trigger replacement.
string

ARN of the main or global table which this resource will replicate.

Optional arguments:

deletionProtectionEnabled boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
kmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags {[key: string]: string}
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
global_table_arn
This property is required.
Changes to this property will trigger replacement.
str

ARN of the main or global table which this resource will replicate.

Optional arguments:

deletion_protection_enabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
kms_key_arn Changes to this property will trigger replacement. str
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
point_in_time_recovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
table_class_override Changes to this property will trigger replacement. str
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Mapping[str, str]
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
globalTableArn
This property is required.
Changes to this property will trigger replacement.
String

ARN of the main or global table which this resource will replicate.

Optional arguments:

deletionProtectionEnabled Boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
kmsKeyArn Changes to this property will trigger replacement. String
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery Boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. String
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Map<String>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the TableReplica resource produces the following output properties:

Arn string
ARN of the table replica.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Arn string
ARN of the table replica.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
ARN of the table replica.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String,String>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn string
ARN of the table replica.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn str
ARN of the table replica.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
ARN of the table replica.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Look up Existing TableReplica Resource

Get an existing TableReplica resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TableReplicaState, opts?: CustomResourceOptions): TableReplica
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        deletion_protection_enabled: Optional[bool] = None,
        global_table_arn: Optional[str] = None,
        kms_key_arn: Optional[str] = None,
        point_in_time_recovery: Optional[bool] = None,
        table_class_override: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> TableReplica
func GetTableReplica(ctx *Context, name string, id IDInput, state *TableReplicaState, opts ...ResourceOption) (*TableReplica, error)
public static TableReplica Get(string name, Input<string> id, TableReplicaState? state, CustomResourceOptions? opts = null)
public static TableReplica get(String name, Output<String> id, TableReplicaState state, CustomResourceOptions options)
resources:  _:    type: aws:dynamodb:TableReplica    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string
ARN of the table replica.
DeletionProtectionEnabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
GlobalTableArn Changes to this property will trigger replacement. string

ARN of the main or global table which this resource will replicate.

Optional arguments:

KmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
PointInTimeRecovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
TableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
Tags Dictionary<string, string>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Arn string
ARN of the table replica.
DeletionProtectionEnabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
GlobalTableArn Changes to this property will trigger replacement. string

ARN of the main or global table which this resource will replicate.

Optional arguments:

KmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
PointInTimeRecovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
TableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
Tags map[string]string
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
ARN of the table replica.
deletionProtectionEnabled Boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
globalTableArn Changes to this property will trigger replacement. String

ARN of the main or global table which this resource will replicate.

Optional arguments:

kmsKeyArn Changes to this property will trigger replacement. String
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery Boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. String
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Map<String,String>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String,String>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn string
ARN of the table replica.
deletionProtectionEnabled boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
globalTableArn Changes to this property will trigger replacement. string

ARN of the main or global table which this resource will replicate.

Optional arguments:

kmsKeyArn Changes to this property will trigger replacement. string
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. string
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags {[key: string]: string}
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn str
ARN of the table replica.
deletion_protection_enabled bool
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
global_table_arn Changes to this property will trigger replacement. str

ARN of the main or global table which this resource will replicate.

Optional arguments:

kms_key_arn Changes to this property will trigger replacement. str
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
point_in_time_recovery bool
Whether to enable Point In Time Recovery for the table replica. Default is false.
table_class_override Changes to this property will trigger replacement. str
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Mapping[str, str]
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

arn String
ARN of the table replica.
deletionProtectionEnabled Boolean
Whether deletion protection is enabled (true) or disabled (false) on the table replica.
globalTableArn Changes to this property will trigger replacement. String

ARN of the main or global table which this resource will replicate.

Optional arguments:

kmsKeyArn Changes to this property will trigger replacement. String
ARN of the CMK that should be used for the AWS KMS encryption. This argument should only be used if the key is different from the default KMS-managed DynamoDB key, alias/aws/dynamodb. Note: This attribute will not be populated with the ARN of default keys.
pointInTimeRecovery Boolean
Whether to enable Point In Time Recovery for the table replica. Default is false.
tableClassOverride Changes to this property will trigger replacement. String
Storage class of the table replica. Valid values are STANDARD and STANDARD_INFREQUENT_ACCESS. If not used, the table replica will use the same class as the global table.
tags Map<String>
Map of tags to populate on the created table. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String>
Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Import

Using pulumi import, import DynamoDB table replicas using the table-name:main-region. For example:

~> Note: When importing, use the region where the initial or main global table resides, not the region of the replica.

$ pulumi import aws:dynamodb/tableReplica:TableReplica example TestTable:us-west-2
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.