-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aws-autoscaling): Add hook ordering dependency
Add an ordering dependency between the LifecycleHook and the role policy that grants permissions to perform the action (publish to a topic or queue). Without this ordering dependency, the template might fail to deploy. Fixes #1212.
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import cdk = require('@aws-cdk/cdk'); | ||
/** | ||
* Allow lazy evaluation of a list of dependables | ||
*/ | ||
export class LazyDependable implements cdk.IDependable { | ||
constructor(private readonly depList: cdk.IDependable[]) { | ||
} | ||
|
||
public get dependencyElements(): cdk.IDependable[] { | ||
return this.depList; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters