Migrating AWS Organization Configuration Code to a Container | by Teri Radichel | Cloud Security | November 2023


ACM.387 Moving existing organization configuration code to associated resource folder

Part of my series on Automation of cybersecurity measures. AWS Organizations. I AM. Deploy a static website. THE Coded.

Free content on Cybersecurity Jobs | Register at Broadcast list

In the last article I covered the resource I think I will need to create to redeploy my organization with my new deployment container.

In this article, I want to clean up my organization’s deployment.

Organizational Settings

To migrate my organizational settings, I migrate this file via:


In this file, I see that I have this function:

This is no longer applicable since I have a new way to deploy or import an organization into my deploy/rootadmin/deploy_organization.sh deposit. But in reality, this code is specific to the organization resource, so I move this code into the (truncated) create organization function:

I source the organization functions file:

Let’s see what I have in my organization’s deployment script in my POC code:

I can simply copy these four functions now to my rootadmin deploy_organization.sh script and they will be called from the organization_functions.sh deposit. I test and it works.

Leave a comment