-
Notifications
You must be signed in to change notification settings - Fork 1
/
organization.tf
41 lines (33 loc) · 1.3 KB
/
organization.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
data "aws_organizations_organization" "org" {}
resource "aws_organizations_organizational_unit" "sandbox" {
name = "Sandbox"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "suspended" {
name = "Suspended"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "security" {
name = "Security"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "exceptions" {
name = "Exceptions"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "workloads" {
name = "Workloads"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "workloads_dev" {
name = "Development"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "workloads_staging" {
name = "Staging"
parent_id = data.aws_organizations_organization.org.roots[0].id
}
resource "aws_organizations_organizational_unit" "workloads_production" {
name = "Production"
parent_id = data.aws_organizations_organization.org.roots[0].id
}