Skip to content

Commit 831c3a0

Browse files
fix: Update global example to enable stream (#30)
1 parent ff53cf4 commit 831c3a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/global-tables/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ resource "random_pet" "this" {
99
module "dynamodb_table" {
1010
source = "../../"
1111

12-
name = "my-table-${random_pet.this.id}"
13-
hash_key = "id"
14-
range_key = "title"
12+
name = "my-table-${random_pet.this.id}"
13+
hash_key = "id"
14+
range_key = "title"
15+
stream_enabled = true
16+
stream_view_type = "NEW_AND_OLD_IMAGES"
1517

1618
attributes = [
1719
{

0 commit comments

Comments
 (0)