-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing PR changes with config file exclusions
- Loading branch information
1 parent
d6c9865
commit cc364b3
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
resource "aws_dynamodb_table" "basic-dynamodb-table" { | ||
name = "GameScores" | ||
billing_mode = "PROVISIONED" | ||
read_capacity = 20 | ||
write_capacity = 20 | ||
hash_key = "UserId" | ||
range_key = "GameTitle" | ||
|
||
point_in_time_recovery { | ||
enabled = false | ||
} | ||
|
||
attribute { | ||
name = "UserId" | ||
type = "S" | ||
} | ||
|
||
attribute { | ||
name = "GameTitle" | ||
type = "S" | ||
} | ||
|
||
attribute { | ||
name = "TopScore" | ||
type = "N" | ||
} | ||
|
||
ttl { | ||
attribute_name = "TimeToExist" | ||
enabled = false | ||
} | ||
|
||
global_secondary_index { | ||
name = "GameTitleIndex" | ||
hash_key = "GameTitle" | ||
range_key = "TopScore" | ||
write_capacity = 10 | ||
read_capacity = 10 | ||
projection_type = "INCLUDE" | ||
non_key_attributes = ["UserId"] | ||
} | ||
|
||
tags = { | ||
Name = "dynamodb-table-1" | ||
Environment = "production" | ||
} | ||
} |