generated from MacarielAerial/gaia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
57 lines (43 loc) · 1.04 KB
/
main.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
50
51
52
53
54
55
56
57
# Blob storage for images with circles
resource "aws_s3_bucket" "aion_circle_bucket" {
bucket = "aion-circle-dev-34567"
force_destroy = true
tags = {
Name = "RawImageBucket"
}
}
# NoSQL for circle's JSON data
resource "aws_dynamodb_table" "circular_objs_table" {
name = "CircularObjsTable"
billing_mode = "PAY_PER_REQUEST"
hash_key = "uri_circle"
attribute {
name = "uri_circle"
type = "S"
}
attribute {
name = "uri_image"
type = "S"
}
global_secondary_index {
name = "UriImageIndex"
hash_key = "uri_image"
projection_type = "ALL"
}
tags = {
Name = "CircularObjsDynamoDBTable"
}
}
# NoSQL for resized image data
resource "aws_dynamodb_table" "resized_frames_table" {
name = "ResizedFramesTable"
billing_mode = "PAY_PER_REQUEST"
hash_key = "frame_id"
attribute {
name = "frame_id"
type = "N"
}
tags = {
Name = "ResizedFramesDynamoDBTable"
}
}