Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2567,14 +2567,15 @@ export class ConvertAseaConfig {
}
//validation to ensure rules with remediation via ssm have document to deployed to matching ou's
for (const rule of rulesWithTarget) {
const deploymentOuListWithNestedOus = this.getNestedOusForDeploymentTargets(rule.deployTo ?? []);
if (rule.remediation && rule.remediation.targetId) {
for (const documentSet of this.documentSets) {
for (const document of documentSet.documents) {
if (document.name === rule.remediation.targetId) {
for (const target of documentSet.shareTargets.organizationalUnits ?? []) {
if (!rule.deployTo?.includes(target)) {
if (!deploymentOuListWithNestedOus.includes(target)) {
this.configCheck.addWarning(
`SSM Remediation document ${document.name} is not deployed to the same OU ${target} as the config rule ${rule.name}.`,
`SSM Remediation document ${document.name} is not deployed to the same OU ${target} as the config rule ${rule.name} in ${deploymentOuListWithNestedOus}.`,
);
}
}
Expand Down
Loading