forked from zbmowrey/cloud-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorg-accounts-infra.tf
More file actions
80 lines (67 loc) · 1.85 KB
/
org-accounts-infra.tf
File metadata and controls
80 lines (67 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Deploy standardized infrastructure to sub-accounts within the Organization.
# Terraform State (s3/dynamo) is my entry point, but I'm also considering
# uniform IAM roles and other governance-related items.
# Terraform State (s3) and Locks (Dynamo) ################################################
resource "aws_dynamodb_table" "governance-terraform-locks" {
hash_key = "LockID"
name = "terraform-locks"
attribute {
name = "LockID"
type = "S"
}
tags = {
CostCenter = "zbmowrey-global"
}
billing_mode = "PAY_PER_REQUEST"
}
resource "aws_s3_bucket" "governance-tf-state" {
bucket = "zbm-governance-terraform-state"
}
resource "aws_dynamodb_table" "develop-terraform-locks" {
provider = aws.develop
hash_key = "LockID"
name = "terraform-locks"
attribute {
name = "LockID"
type = "S"
}
tags = {
CostCenter = "zbmowrey-global"
}
billing_mode = "PAY_PER_REQUEST"
}
resource "aws_s3_bucket" "develop-tf-state" {
bucket = "zbm-develop-terraform-state"
}
resource "aws_dynamodb_table" "staging-terraform-locks" {
provider = aws.staging
hash_key = "LockID"
name = "terraform-locks"
attribute {
name = "LockID"
type = "S"
}
tags = {
CostCenter = "zbmowrey-global"
}
billing_mode = "PAY_PER_REQUEST"
}
resource "aws_s3_bucket" "staging-tf-state" {
bucket = "zbm-staging-terraform-state"
}
resource "aws_dynamodb_table" "main-terraform-locks" {
provider = aws.main
hash_key = "LockID"
name = "terraform-locks"
attribute {
name = "LockID"
type = "S"
}
tags = {
CostCenter = "zbmowrey-global"
}
billing_mode = "PAY_PER_REQUEST"
}
resource "aws_s3_bucket" "main-tf-state" {
bucket = "zbm-main-terraform-state"
}