Skip to content

How to use when CDK app requires context variables? #241

Open
@JoshMcCullough

Description

@JoshMcCullough

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions