Use strongly typed mu.Stacks, not strings, for CloudFormation's dependsOn
This commit is contained in:
parent
832bb80b47
commit
1a3bfc182c
2 changed files with 2 additions and 2 deletions
|
@ -17,6 +17,6 @@ export interface ResourceArgs {
|
|||
// An optional list of properties to map.
|
||||
readonly properties?: any /*actually, JSON-like*/;
|
||||
// An optional list of other CloudFormation resources that this depends on.
|
||||
readonly dependsOn?: string[];
|
||||
readonly dependsOn?: mu.Stack[];
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ export class Route extends cloudformation.Resource {
|
|||
super(ctx, {
|
||||
resource: "AWS::EC2::Route",
|
||||
dependsOn: [
|
||||
"vpcGatewayAttachment",
|
||||
args.vpcGatewayAttachment,
|
||||
],
|
||||
properties: args,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue