We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 202ba8b commit 7deaffeCopy full SHA for 7deaffe
src/core/runtime/src/add-scp-step.ts
@@ -84,11 +84,12 @@ export const handler = async (input: AddScpInput) => {
84
const acceleratorOuIds = organizationalUnits.map(ou => ou.ouId);
85
const acceleratorAccountIds = accounts.map(a => a.id);
86
const acceleratorTargetIds = [...rootIds, ...acceleratorOuIds, ...acceleratorAccountIds];
87
+ const acceleratorTargetOuIds = [...rootIds, ...acceleratorOuIds];
88
89
// Detach non-Accelerator policies from Accelerator accounts
90
await scps.detachPoliciesFromTargets({
91
policyNamesToKeep: acceleratorPolicyNames,
- policyTargetIdsToInclude: acceleratorTargetIds,
92
+ policyTargetIdsToInclude: acceleratorTargetOuIds,
93
});
94
95
await scps.attachFullAwsAccessPolicyToTargets({
0 commit comments