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 @@ -230,9 +230,6 @@ } resource "aws_dynamodb_table" "identity-nonces" { - # This table doesnt exist in prod - count = var.is_dev ? 1 : 0 - name = "identity-nonces" hash_key = "nonce" billing_mode = "PAY_PER_REQUEST" @@ -241,6 +238,11 @@ name = "nonce" type = "S" } + + ttl { + attribute_name = "expirationTimeUnix" + enabled = true + } } resource "aws_dynamodb_table" "identity-reserved-usernames" {