forked from TeraSky-OSS/laze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
organization.yaml
191 lines (186 loc) · 4.95 KB
/
organization.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
region: us-east-1
aws_profile: ts-laze-mgmt
create_organization: true
root_account_alias: terasky-laze-mgmt
global_tags:
Environment: test
Owner: Daniel Vaknin
policies:
- name: scp_x
type: SERVICE_CONTROL_POLICY
content_inline: |
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
}
- name: scp_y
type: SERVICE_CONTROL_POLICY
content_from_file: allow-all-policy.json
organizational_units:
- name: Security
- name: prod
policies:
- scp_x
- scp_y
- name: dev
policies:
- scp_y
- name: prod_nested
parent_ou: prod
- name: dev_project_a
parent_ou: dev
accounts:
- name: Audit Account
email: [email protected]
ou: Security
roles:
- audit
- name: Log Archive
email: [email protected]
ou: Security
roles:
- log_archive
- name: TeraSky LAZE Project 01
email: [email protected]
ou: prod
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 21.0.0.0/16
public_subnets: [21.0.1.0/24, 21.0.2.0/24, 21.0.3.0/24]
private_subnets: [21.0.101.0/24, 21.0.102.0/24, 21.0.103.0/24]
- name: TeraSky LAZE Project 02
email: [email protected]
ou: prod
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 20.0.0.0/16
public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
- name: TeraSky LAZE Project 03
email: [email protected]
ou: prod
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 20.0.0.0/16
public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
- name: TeraSky LAZE Project 04
email: [email protected]
ou: prod
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 20.0.0.0/16
public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
- name: TeraSky LAZE Project 05
email: [email protected]
ou: prod
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 20.0.0.0/16
public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
- name: TeraSky LAZE Project 06
email: [email protected]
ou: dev_project_a
policies:
- scp_y
network:
create: true
name: vpc-project-a
vpc_cidr: 30.0.0.0/16
public_subnets: [30.0.1.0/24, 30.0.2.0/24, 30.0.3.0/24]
private_subnets: [30.0.101.0/24, 30.0.102.0/24, 30.0.103.0/24]
- name: TeraSky LAZE Project 07
email: [email protected]
ou: dev
policies:
- scp_x
network:
create: false
# - name: TeraSky LAZE Project 08
# email: [email protected]
# ou: dev
# policies:
# - scp_y
# network:
# create: true
# name: laze-vpc
# vpc_cidr: 20.0.0.0/16
# public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
# private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
- name: TeraSky LAZE Project 09
email: [email protected]
ou: dev
policies:
- scp_x
network:
create: true
name: laze-vpc
vpc_cidr: 20.0.0.0/16
public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
# - name: TeraSky LAZE Project 10
# email: [email protected]
# ou: prod
# policies:
# - scp_x
# network:
# create: true
# name: laze-vpc
# vpc_cidr: 20.0.0.0/16
# public_subnets: [20.0.1.0/24, 20.0.2.0/24, 20.0.3.0/24]
# private_subnets: [20.0.101.0/24, 20.0.102.0/24, 20.0.103.0/24]
tf_modules:
- name: test-s3-1
source: terraform-aws-modules/s3-bucket/aws
version: 2.9.0
variables:
bucket_prefix: ts-laze-
acl: private
accounts:
- TeraSky LAZE Project 01
- TeraSky LAZE Project 02
- TeraSky LAZE Project 03
- TeraSky LAZE Project 04
- TeraSky LAZE Project 05
- name: test-s3-2
source: terraform-aws-modules/s3-bucket/aws
version: 2.9.0
variables:
bucket_prefix: ts-laze-
acl: private
accounts:
# - TeraSky LAZE Project 06
- TeraSky LAZE Project 07
# - TeraSky LAZE Project 08
- TeraSky LAZE Project 09
- name: project-a-iam-user
source: terraform-aws-modules/iam/aws//modules/iam-user
version: 4.24.1
variables:
name: "project-a-user"
create_iam_access_key: false
create_iam_user_login_profile: false
force_destroy: true
accounts:
- TeraSky LAZE Project 06