Giter Site home page Giter Site logo

aws-org-ou-module's Introduction

aws-org-ou-module

Python script to provision AWS Organization Unit

I wrote it to support one project to provisione AWS multi account environment, using AWS Organization. I used Terraform to create the organization, accounts and policys, but they does not have a module to manage OU.

Json

You need to create a Json File to support the Organization Hierarchy.

{
	"topLevelOUID": "r-abcd",
	"OUs": [
                {
			"OUName": "Core_Accounts"
		},
		{
			"OUName": "WorkLoad_Accounts"
		},
		{
			"OUName": "Developer_Accounts"
		}, 
		{
			"ParentOUName": "WorkLoad_Accounts",
			"OUName": "Production_WorkLoad"
		},
		{
			"ParentOUName": "WorkLoad_Accounts",
			"OUName": "Staging_WorkLoad"
		}
  ]
}

topLevelOUID -> Roou OU ID
OUName -> Name of the Organization Unit
ParentOUName -> Name of the Parent OU to create the hierarchy, if this key does not exist in the OU will be created below the Root OU.

Build

docker build . --tag aws-organization-unit-bootstrap

Deploy OUs

Dont forget to pass the AWS Credentials when start the container

docker container run aws-organization-unit-bootstrap -e AWS_ACCESS_KEY=XXXX -e AWS_SECRET_KEY=XXXX

The container will run and die at the finish of the creation of the structure. Put it in you CI server to run continuosly.

running

 $ V=1 ; until [ "${V}" == '' ] ; do V=$(python ou_provisioner.py) ; echo $V ; sleep 1 ; done


aws-org-ou-module's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.