Changeset View
Changeset View
Standalone View
Standalone View
services/terraform/dynamodb-test.tf
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | global_secondary_index { | ||||
name = "blobHash-index" | name = "blobHash-index" | ||||
hash_key = "blobHash" | hash_key = "blobHash" | ||||
write_capacity = 10 | write_capacity = 10 | ||||
read_capacity = 10 | read_capacity = 10 | ||||
projection_type = "ALL" | projection_type = "ALL" | ||||
} | } | ||||
} | } | ||||
resource "aws_dynamodb_table" "tunnelbroker-device-sessions-test" { | |||||
name = "tunnelbroker-device-sessions-test" | |||||
hash_key = "SessionID" | |||||
write_capacity = 10 | |||||
read_capacity = 10 | |||||
attribute { | |||||
name = "SessionID" | |||||
type = "S" | |||||
} | |||||
ttl { | |||||
attribute_name = "Expire" | |||||
enabled = true | |||||
} | |||||
} | |||||
resource "aws_dynamodb_table" "tunnelbroker-verification-messages-test" { | |||||
name = "tunnelbroker-verification-messages-test" | |||||
hash_key = "DeviceID" | |||||
write_capacity = 10 | |||||
read_capacity = 10 | |||||
attribute { | |||||
name = "DeviceID" | |||||
type = "S" | |||||
} | |||||
ttl { | |||||
attribute_name = "Expire" | |||||
enabled = true | |||||
} | |||||
} | |||||
resource "aws_dynamodb_table" "tunnelbroker-public-keys-test" { | |||||
name = "tunnelbroker-public-keys-test" | |||||
hash_key = "DeviceID" | |||||
write_capacity = 10 | |||||
read_capacity = 10 | |||||
attribute { | |||||
name = "DeviceID" | |||||
type = "S" | |||||
} | |||||
} | |||||
resource "aws_dynamodb_table" "tunnelbroker-messages-test" { | |||||
name = "tunnelbroker-messages-test" | |||||
hash_key = "ToDeviceID" | |||||
range_key = "MessageID" | |||||
write_capacity = 10 | |||||
read_capacity = 10 | |||||
attribute { | |||||
name = "MessageID" | |||||
type = "S" | |||||
} | |||||
attribute { | |||||
name = "ToDeviceID" | |||||
type = "S" | |||||
} | |||||
ttl { | |||||
attribute_name = "Expire" | |||||
enabled = true | |||||
} | |||||
} | |||||
resource "aws_dynamodb_table" "feature-flags-test" { | resource "aws_dynamodb_table" "feature-flags-test" { | ||||
name = "feature-flags-test" | name = "feature-flags-test" | ||||
hash_key = "platform" | hash_key = "platform" | ||||
range_key = "feature" | range_key = "feature" | ||||
billing_mode = "PAY_PER_REQUEST" | billing_mode = "PAY_PER_REQUEST" | ||||
attribute { | attribute { | ||||
name = "platform" | name = "platform" | ||||
type = "S" | type = "S" | ||||
} | } | ||||
attribute { | attribute { | ||||
name = "feature" | name = "feature" | ||||
type = "S" | type = "S" | ||||
} | } | ||||
} | } |