cfn-diagram icon indicating copy to clipboard operation
cfn-diagram copied to clipboard

How to use when CDK app requires context variables?

Open JoshMcCullough opened this issue 5 months ago • 0 comments

When I run npx cfn-dia html within my CDK app, it will fail because I didn't provide the required context variables for my app. But when I try to include them (npx cfn-dia html --context "..."), cfn-dia doesn't approve of my --context option:

error: unknown option '--context'

I've also tried these methods with no luck:

npx cfn-dia --context "..." html
npx cfn-dia html -- --context "..."

But the context variable is not picked up in any case.

What am I missing here? Thanks!

JoshMcCullough avatar Sep 09 '24 15:09 JoshMcCullough