-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamodb.tf
49 lines (38 loc) · 1.12 KB
/
dynamodb.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
resource "aws_dynamodb_table" "identification_svc_clients_table" {
name = "clients"
billing_mode = "PROVISIONED"
hash_key = "id" // Partition key
read_capacity = "5"
write_capacity = "5"
attribute {
name = "id"
type = "S" // Auto-generated UUIDs
}
tags = {
Name : "SOAT-TC DynamoDB Identification Service Clients Table"
}
}
module "identification_svc_clients_table_autoscaling" {
source = "snowplow-devops/dynamodb-autoscaling/aws"
version = "~> 0.2.1"
table_name = aws_dynamodb_table.identification_svc_clients_table.name
}
resource "aws_dynamodb_table" "production_svc_status_table" {
name = "status"
billing_mode = "PROVISIONED"
hash_key = "id" // Partition key
read_capacity = "5"
write_capacity = "5"
attribute {
name = "id"
type = "S" // Auto-generated UUIDs
}
tags = {
Name : "SOAT-TC DynamoDB Production Service Status Table"
}
}
module "production_svc_status_table_autoscaling" {
source = "snowplow-devops/dynamodb-autoscaling/aws"
version = "~> 0.2.1"
table_name = aws_dynamodb_table.production_svc_status_table.name
}