diff --git a/services/terraform/dev/main.tf b/services/terraform/dev/main.tf --- a/services/terraform/dev/main.tf +++ b/services/terraform/dev/main.tf @@ -45,8 +45,8 @@ module "shared" { source = "../modules/shared" is_dev = true - - vpc_id = null + + vpc_id = null cidr_block = null subnet_ids = [] } diff --git a/services/terraform/modules/shared/dynamodb.tf b/services/terraform/modules/shared/dynamodb.tf --- a/services/terraform/modules/shared/dynamodb.tf +++ b/services/terraform/modules/shared/dynamodb.tf @@ -83,7 +83,7 @@ name = "tunnelbroker-undelivered-messages" hash_key = "deviceID" range_key = "messageID" - billing_mode = "PAY_PER_REQUEST" + billing_mode = "PAY_PER_REQUEST" attribute { name = "deviceID" @@ -99,7 +99,10 @@ resource "aws_dynamodb_table" "identity-users" { name = "identity-users" hash_key = "userID" - billing_mode = "PAY_PER_REQUEST" + billing_mode = "PAY_PER_REQUEST" + stream_enabled = true + stream_view_type = "NEW_AND_OLD_IMAGES" + attribute { name = "userID" diff --git a/services/terraform/remote/main.tf b/services/terraform/remote/main.tf --- a/services/terraform/remote/main.tf +++ b/services/terraform/remote/main.tf @@ -52,11 +52,11 @@ source = "../modules/shared" bucket_name_suffix = local.s3_bucket_name_suffix - vpc_id = aws_vpc.default.id - cidr_block = aws_vpc.default.cidr_block - subnet_ids = [ - aws_subnet.public_a.id, - ] + vpc_id = aws_vpc.default.id + cidr_block = aws_vpc.default.cidr_block + subnet_ids = [ + aws_subnet.public_a.id, + ] } check "workspace_check" {