We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a8e2f0 commit 6e79702Copy full SHA for 6e79702
terraform-aws-rds-dynamoDb/dynamodb.tf
@@ -21,20 +21,15 @@ resource "aws_dynamodb_table" "basic-dynamodb-table" {
21
type = "S"
22
}
23
24
- attribute {
25
- name = "TopScore"
26
- type = "N"
27
- }
28
-
29
ttl {
30
attribute_name = "TimeToExist"
31
enabled = false
32
33
34
global_secondary_index {
35
name = "UserTitleIndex"
36
- hash_key = "UserTitle"
37
- range_key = "TopScore"
+ hash_key = "UserId"
+ range_key = "Name"
38
write_capacity = 10
39
read_capacity = 10
40
projection_type = "INCLUDE"
0 commit comments