- Make decision on new OU name, e.g.
sandbox
- Create new Organizational Unit within AWS Organizations Console
- Create AWS Systems Manager Parameter with OU ID as value:
/org/organization-unit/<ou-name>
Resolve new organization unit id within AWS CloudFormation using dynamic references ({resolve:ssm:/org/organization-unit/<ou-name>
)
Example:
Account:
Type: ProServe::Organizations::Account
Properties:
AccountName: !Ref AccountName
AccountEmail: !Ref AccountEmail
OrganizationalUnitId: '{{resolve:ssm:/org/organization-unit/dev}}'
NotificationTopicArn: !ImportValue notification-topic-arn
Tags:
- Key: type
Value: dev