Skip to content

Commit ef949ee

Browse files
replace organizationalOUID with rootOUID (#152)
1 parent 7f0dc34 commit ef949ee

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

modules/log_ingestion.s3.cft.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Metadata:
1717
- KMSAccountId
1818
- BucketAccountId
1919
- TopicAccountId
20-
- OrganizationalUnitIds
20+
- RootOUID
2121
- CreateTopic
2222
- TopicARN
2323
- Endpoint
@@ -40,8 +40,8 @@ Metadata:
4040
default: Bucket Account ID
4141
TopicAccountId:
4242
default: SNS Topic Account ID
43-
OrganizationalUnitIds:
44-
default: Organizational Unit IDs
43+
RootOUID:
44+
default: Root Organization Unit ID
4545
CreateTopic:
4646
default: Create SNS Topic
4747
TopicARN:
@@ -84,11 +84,9 @@ Parameters:
8484
Type: String
8585
Description: The AWS Account ID that owns the SNS topic.
8686
AllowedPattern: '^[0-9]{12}$'
87-
OrganizationalUnitIds:
88-
Type: String
89-
Description: Comma-separated list of AWS Organizations organizational unit (OU) IDs for cross-account deployments.
90-
Default: "r-root"
91-
AllowedPattern: '^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})(,\s*(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32}))*$'
87+
RootOUID:
88+
Type: CommaDelimitedList
89+
Description: Root Organizational Unit ID of your AWS organization
9290
CreateTopic:
9391
Type: String
9492
AllowedValues:
@@ -246,12 +244,12 @@ Resources:
246244
ParameterValue: !Ref TopicRegion
247245
StackInstancesGroup:
248246
- DeploymentTargets:
249-
OrganizationalUnitIds: !Split [",", !Ref OrganizationalUnitIds]
247+
OrganizationalUnitIds: !Ref RootOUID
250248
Accounts: [!Ref BucketAccountId]
251249
AccountFilterType: INTERSECTION
252250
Regions: [!Ref "AWS::Region"]
253251
- DeploymentTargets:
254-
OrganizationalUnitIds: !Split [",", !Ref OrganizationalUnitIds]
252+
OrganizationalUnitIds: !Ref RootOUID
255253
Accounts: [!Ref TopicAccountId]
256254
AccountFilterType: INTERSECTION
257255
Regions: [!Ref TopicRegion]

0 commit comments

Comments
 (0)