From 48c5e88611c2c4216797d7fe8289557fa815e572 Mon Sep 17 00:00:00 2001 From: xpk Date: Tue, 25 Aug 2020 16:30:23 +0800 Subject: [PATCH] NEW: adding aws org and iam --- aws-org/main.tf | 26 ++++++++++++++++++++++++++ iam/role.tf | 27 +++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 aws-org/main.tf create mode 100644 iam/role.tf diff --git a/aws-org/main.tf b/aws-org/main.tf new file mode 100644 index 0000000..b0f4c3b --- /dev/null +++ b/aws-org/main.tf @@ -0,0 +1,26 @@ +resource "aws_organizations_organization" "org" { + aws_service_access_principals = [ + "cloudtrail.amazonaws.com", + "config.amazonaws.com", + ] + + feature_set = "ALL" + enabled_policy_types = [ + "TAG_POLICY", + "SERVICE_CONTROL_POLICY" + ] +} + +resource "aws_organizations_policy" "taggig-policy" { + name = "tagging-policy" + type = "TAG_POLICY" + + content = <