feat(terraform): Created GDB organization

This commit is contained in:
Jocelyn Badgley 2023-08-21 09:27:50 -07:00
parent aa368614b1
commit bc760704f1
No known key found for this signature in database
GPG Key ID: 909059F0FFF842D8

22
terraform/organization.tf Normal file
View File

@ -0,0 +1,22 @@
resource "aws_organizations_organization" "org" {
aws_service_access_principals = [
"cloudtrail.amazonaws.com",
"config.amazonaws.com",
]
feature_set = "ALL"
}
data "aws_organizations_organization" "gdb" {}
resource "aws_organizations_organizational_unit" "gdb" {
name = "Gender Dysphoria Bible"
parent_id = data.aws_organizations_organization.gdb.roots[0].id
}
resource "aws_organizations_account" "account" {
name = "gdb-manage"
email = "aws@genderdysphoria.fyi"
parent_id = aws_organizations_organizational_unit.gdb.id
}