Skip to content

Commit 6e79702

Browse files
committed
dynamodb
1 parent 5a8e2f0 commit 6e79702

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: terraform-aws-rds-dynamoDb/dynamodb.tf

+2-7
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,15 @@ resource "aws_dynamodb_table" "basic-dynamodb-table" {
2121
type = "S"
2222
}
2323

24-
attribute {
25-
name = "TopScore"
26-
type = "N"
27-
}
28-
2924
ttl {
3025
attribute_name = "TimeToExist"
3126
enabled = false
3227
}
3328

3429
global_secondary_index {
3530
name = "UserTitleIndex"
36-
hash_key = "UserTitle"
37-
range_key = "TopScore"
31+
hash_key = "UserId"
32+
range_key = "Name"
3833
write_capacity = 10
3934
read_capacity = 10
4035
projection_type = "INCLUDE"

0 commit comments

Comments
 (0)