Skip to content

Commit

Permalink
Merge pull request #25 from jplock/jp-ou-names
Browse files Browse the repository at this point in the history
[fix] configurable OU names
  • Loading branch information
jplock authored Feb 13, 2025
2 parents 59f8170 + 1a91598 commit 0bb968d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ This repository contains a collection of [AWS CloudFormation](https://aws.amazon
| pRegions | CommaDelimitedList | us-east-1 | Comma-delimited list of AWS Regions |
| pSandboxOuName | String | Sandbox | Name of the organizational unit for sandbox AWS accounts |
| pSecurityOuName | String | Security_Prod | Name of the organizational unit for security-related AWS accounts |
| pWorkloadsOuName | String | Workloads | Name of the organizational unit for workload AWS accounts |
| pInfrastructureOuName | String | Infrastructure | Name of the organization unit for infrastructure AWS accounts |
| pGithubOrganization | String | _None_ | GitHub Organization |
| pCreateNewAwsOrg | String | Yes | Whether to create a new AWS Organization or not |
| pOrganizationId | String | _None_ | Existing AWS Organization ID |
Expand Down
1 change: 1 addition & 0 deletions github_ci_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Resources:
- "lambda:GetRuntimeManagementConfig"
- "lambda:InvokeFunction"
- "lambda:UpdateFunctionCode"
- "lambda:UpdateFunctionConfiguration"
- "logs:DescribeLogGroups"
- "logs:ListTagsForResource"
- "logs:TagResource"
Expand Down
12 changes: 10 additions & 2 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ Parameters:
Type: String
Description: Organizational Unit (OU) for security accounts
Default: Security_Prod
pWorkloadsOuName:
Type: String
Description: Organizational Unit (OU) for workloads accounts
Default: Workloads
pInfrastructureOuName:
Type: String
Description: Organizational Unit (OU) for infrastructure accounts
Default: Infrastructure
pGithubOrganization:
Type: String
Description: GitHub Organization or User
Expand Down Expand Up @@ -423,7 +431,7 @@ Resources:
Type: "AWS::Organizations::OrganizationalUnit"
DependsOn: rOrgWaiter
Properties:
Name: Infrastructure
Name: !Ref pInfrastructureOuName
ParentId: !If
- cHasOrganizationRootId
- !Ref pOrganizationRootId
Expand Down Expand Up @@ -453,7 +461,7 @@ Resources:
Type: "AWS::Organizations::OrganizationalUnit"
DependsOn: rOrgWaiter
Properties:
Name: Workloads
Name: !Ref pWorkloadsOuName
ParentId: !If
- cHasOrganizationRootId
- !Ref pOrganizationRootId
Expand Down

0 comments on commit 0bb968d

Please sign in to comment.