{"repo":"aws-samples/terraform-aws-organization-policies","free":true,"listed":false,"github":"https://github.com/aws-samples/terraform-aws-organization-policies","clone":"git clone https://github.com/aws-samples/terraform-aws-organization-policies.git","description":"Deploy SCPs, RCPs, and other AWS organization policies with Terraform","language":"HCL","stars":105,"topics":["aws","aws-organizations","scp","terraform","rcp"],"license":"MIT-0","category":"deployment-docker-iac","readme_excerpt":"terraform-aws-organization-policies Deploy SCPs, RCPs, and other AWS organization policies with Terraform. Module Inputs SCP example: RCP example: policy type is the type of organizational policy. A new module needs to be created for each policy type. ou map is a map of OU IDs and the policies attached to them. Policies are stored as json files in an adjacent directory. The directory name defaults to the policy type, eg ./service control policy/ . The above two module inputs would look like this: Optional Inputs policies directory overrides the name and location of the directory used to store policies. Otherwise it will default to the name of the policy type, eg ./service control policy/ . Template Files The module accepts template files ( .json.tpl ). These can be inputted alongside json files. template variables inserts variables into template files. See iam.json.tpl for an example. Troubleshooting Issue Fix --- --- PolicyTypeNotEnabledException Enable the policy type within AWS Organizations first. Related Resources - Managing organization policies with AWS Organizations - Service Control Policy (SCP) examples - Resource Control Policy (RCP) examples - Declarative policy syntax and examples - Backup policy syntax and examples - Tag policy syntax and examples - AI policy syntax and examples - aws-samples/data-perimeter-policy-examples - aws-samples/service-control-policy-examples - Resource: aws organizations policy - Resource: aws organizations policy attachment - Terrafor","default_branch":null,"files":null,"tree":[],"storefront":"/r/aws-samples","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aws-samples/terraform-aws-organization-policies/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}