Skip to content

Commit

Permalink
Stream view NEW_AND_OLD
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Oct 13, 2023
1 parent 7e8329a commit 01b33d5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions terraform/environment/dynamodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "aws_dynamodb_table" "actor_codes_table" {
billing_mode = "PAY_PER_REQUEST"
hash_key = "ActorCode"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
stream_view_type = "NEW_AND_OLD_IMAGES"
server_side_encryption {
enabled = true
}
Expand All @@ -28,6 +28,7 @@ resource "aws_dynamodb_table" "actor_codes_table" {
content {
region_name = replica.value.name
propagate_tags = true

}
}

Expand All @@ -43,7 +44,7 @@ resource "aws_dynamodb_table" "stats_table" {
billing_mode = "PAY_PER_REQUEST"
hash_key = "TimePeriod"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
stream_view_type = "NEW_AND_OLD_IMAGES"
#tfsec:ignore:aws-dynamodb-table-customer-key - same as the other tables. Will update in one go as separate ticket
server_side_encryption {
enabled = true
Expand Down Expand Up @@ -82,7 +83,7 @@ resource "aws_dynamodb_table" "actor_users_table" {
billing_mode = "PAY_PER_REQUEST"
hash_key = "Id"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
stream_view_type = "NEW_AND_OLD_IMAGES"
server_side_encryption {
enabled = true
}
Expand Down Expand Up @@ -171,7 +172,7 @@ resource "aws_dynamodb_table" "viewer_codes_table" {
billing_mode = "PAY_PER_REQUEST"
hash_key = "ViewerCode"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
stream_view_type = "NEW_AND_OLD_IMAGES"
server_side_encryption {
enabled = true
}
Expand Down Expand Up @@ -269,7 +270,7 @@ resource "aws_dynamodb_table" "user_lpa_actor_map" {
billing_mode = "PAY_PER_REQUEST"
hash_key = "Id"
stream_enabled = true
stream_view_type = "NEW_IMAGE"
stream_view_type = "NEW_AND_OLD_IMAGES"
server_side_encryption {
enabled = true
}
Expand Down

0 comments on commit 01b33d5

Please sign in to comment.