Introduction to AWS Organization

Overview

AWS Organizations help manage multiple AWS accounts under one entity. With this feature, you can organize accounts, apply security policies, and optimize billing.

Prerequisite

Before starting, ensure you have:

  • AWS accounts
  • Legitimate (valid) email address

Implementation

Create AWS Organization

We need to create an organization first as the root.

Go to AWS Organizations, then choose Create an Organization.

AWS Organization Dashboard

Need to wait for a moment, and we will find the organization created.

AWS Accounts

Organization structure filled by root and current AWS user account as management account.

Add AWS Accounts

For the new accounts, we can add them by going to AWS accounts and choosing Add an AWS account.

Add AWS account

We need to provide a valid email address, an optional message to include in the invitation email, and optional tags.

The account name can be set freely, similar to a username in the AWS console. For example, we can use “sandbox” to indicate a testing environment.

List of AWS Account

Look! the new AWS account have been added to root account as default.

Invite Existing Accounts

To invite an existing AWS account, navigate to AWS accountsInvitations or click Add an AWS account and select Invite an existing AWS account.

Invite AWS account

We just required to fill valid email address, message to include in email (optional) and tags (optional).

Invitation List

Find the invitation from email! Once the invitation is accepted, the account will be listed under the root organizational structure.

Note: Ensure that the provided email address is associated with an existing AWS account. If the recipient does not have an AWS account, they must create one before accepting the invitation.

Manage Accounts with Organizational Units (OU)

Create Organizational Units (OU)

To manage accounts with Organizational Units, we need to create a new Organizational Unit first. In AWS Organization structure → tick Root → Actions → select create new on the organizational unit section

Create Organizational Units (1)
Create Organizational Units (2)

Now, we have 2 new organizational units: “Staging” and “Sandbox“.

Move account to Organizational Units (OU)

To improve management and policy enforcement, we need to group accounts based on their function. Since we have a new Organizational Unit (OU) and AWS accounts, let’s assign the accounts to the new Organizational Units (OU).

Move Account to Organizational Units (OU)

We just need to tick the account “Sandbox”, Actions → select Move on AWS account section. Choose target Organizational Units (OU) [Sandbox] → click Move AWS account button.

Organizations Structure: Sandbox account have been moved to new organizational unit

Now, it’s moved to Sandbox Organizational Units (OU).

Applying Service Control Policies (SCPs)

Service Control Policies (SCPs) are organizational policies that allow or restrict actions across AWS accounts within AWS Organizations. Unlike IAM policies, SCPS don’t grant permissions but only set boundaries on what actions are allowed.

Enable Policies: Service Control Policies

We need to enable the policies first.

And create a new policy to enforce the security best practices. For example, prevent public S3 buckets.

Create New Policy

We will create new policy with name DenyPublicS3.

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Deny”,
“Action”: [
“s3:PutBucketAcl”,
“s3:PutObjectAcl”,
“s3:PutBucketPolicy”
],
“Resource”: “*”
}
]
}
Policy Statement: DenyPublicS3

Then the policy will be created. We can attach it by ticking “DenyPublicS3” policy and go to Actions → Attach policy

Attach Policy

Select Target and Attach Policy, it will be attached to specific destination.

Conclusion

AWS Organization simplifies multi-account management by providing the centralized governance, security and cost optimization. We have learned about these:

  • Created an AWS Organizations, to manage multiple AWS accounts under a single entity
  • Added new accounts or invited existing AWS accounts into the organization.
  • Manage Organizational Units (OU), to structure accounts based on their function.
  • Applied Service Control Policies (SCPs), to enforce security best practices.

References

Amazon Web Services (AWS). https://docs.aws.amazon.com/organizations

Published by boy.suganda

My name is Boy Suganda Sinaga. I worked as Site Reliability Engineer (SRE) at Shipper Indonesia. I'm still developing my skill, both hard-skill and soft-skill. Let's work together, to bring better future for others.

Leave a Reply

Your email address will not be published. Required fields are marked *