resource "aws_dynamodb_table" "shifts" { name = local.table_name billing_mode = "PAY_PER_REQUEST" hash_key = "PK" range_key = "SK" attribute { name = "PK" type = "S" } attribute { name = "SK" type = "S" } ttl { attribute_name = "expires_at" enabled = true } }