Skip to content

Commit

Permalink
fix: ensure the admin role stabilizes for self-managed stacksets
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjlowm committed Dec 22, 2024
1 parent 0c2aa25 commit 52509b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stackset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ export class StackSet extends Resource implements IStackSet {
stackInstancesGroup: Lazy.any({ produce: () => { return this.stackInstances; } }),
});

if (this._role) {
stackSet.node.addDependency(this._role);
}

// the file asset bucket deployment needs to complete before the stackset can deploy
for (const fileAssetResourceName of fileAssetResourceNames) {
const fileAssetResource = scope.node.tryFindChild(fileAssetResourceName);
Expand Down

0 comments on commit 52509b8

Please sign in to comment.