-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.tf
More file actions
60 lines (52 loc) · 1.21 KB
/
example.tf
File metadata and controls
60 lines (52 loc) · 1.21 KB
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
58
59
60
terraform {
required_version = ">= 0.13"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
}
}
}
provider "aws" {
region = "us-west-2"
}
module "dynamo_table_provisioned" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.2"
enable_pay_per_request = false
hash_key = "user_id"
name = "corp_office"
point_in_time_recovery = true
range_key = "department_id"
read_capacity_units = 5
table_encryption_cmk = true
write_capacity_units = 10
attributes = [
{
name = "user_id"
type = "S"
},
{
name = "department_id"
type = "N"
},
]
}
module "dynamo_table_pay_per_requst" {
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.2"
enable_pay_per_request = true
hash_key = "user_id"
name = "branch_office"
point_in_time_recovery = true
range_key = "department_id"
table_encryption_cmk = true
attributes = [
{
name = "user_id"
type = "S"
},
{
name = "department_id"
type = "N"
},
]
}