|
@@ -60,8 +60,8 @@ resource "aws_dynamodb_table" "teleport_events" {
|
|
|
}
|
|
|
|
|
|
global_secondary_index {
|
|
|
- name = "timesearch"
|
|
|
- hash_key = "EventNamespace"
|
|
|
+ name = "timesearchV2"
|
|
|
+ hash_key = "CreatedAtDate"
|
|
|
range_key = "CreatedAt"
|
|
|
write_capacity = 10
|
|
|
read_capacity = 10
|
|
@@ -86,7 +86,7 @@ resource "aws_dynamodb_table" "teleport_events" {
|
|
|
}
|
|
|
|
|
|
attribute {
|
|
|
- name = "EventNamespace"
|
|
|
+ name = "CreatedAtDate"
|
|
|
type = "S"
|
|
|
}
|
|
|
|