Skip to content

Commit b2d0170

Browse files
committed
[AEA-4684] fix metadata for custom resources
1 parent e4da98f commit b2d0170

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/cdk/bin/VpcResourcesApp.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ const VpcResources = new VpcResourcesStack(app, "VpcResourcesStack", {
2727
version: version
2828
})
2929

30+
// run a synth to add custom resource lambdas and roles
31+
app.synth()
32+
3033
addCfnGuardMetadata(VpcResources, "Custom::VpcRestrictDefaultSGCustomResourceProvider", "Handler")
34+
35+
// finally run synth again with force to include the added metadata
36+
app.synth({
37+
force: true
38+
})

0 commit comments

Comments
 (0)