resource "aws_dynamodb_table" "order_service_graph" {
name = "GraphTable"
billing_mode = "PAY_PER_REQUEST"
hash_key = "Node"
range_key = "Type"
attribute {
name = "Node"
type = "S"
}
attribute {
name = "Type"
type = "S"
}
attribute {
name = "Data"
type = "S"
}
attribute {
name = "GSIK"
type = "S"
}
global_secondary_index {
name = "ByType"
hash_key = "GSIK"
range_key = "Type"
projection_type = "ALL"
}
global_secondary_index {
name = "ByData"
hash_key = "GSIK"
range_key = "Data"
projection_type = "ALL"
}
}
only change is I switched to
PAY_PER_REQUEST