From bc760704f1f66f5d8b10c2da0d08c8808241ac32 Mon Sep 17 00:00:00 2001 From: Jocelyn Badgley Date: Mon, 21 Aug 2023 09:27:50 -0700 Subject: [PATCH] feat(terraform): Created GDB organization --- terraform/organization.tf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 terraform/organization.tf diff --git a/terraform/organization.tf b/terraform/organization.tf new file mode 100644 index 0000000..ac1df41 --- /dev/null +++ b/terraform/organization.tf @@ -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 +}