Skip to content

Add a way to generate dot graphs from cfnlint.api #4174

@gautaz

Description

@gautaz

Is this feature request related to a new rule or cfn-lint capabilities?

New capability

Describe the feature you'd like to request

Hello,

Since #2285, it is possible to lint cfn templates from an API call.

We are currently generating these templates with troposphere, so being able to lint the templates directly after troposphere generation is a nice feature.

Now we would like to also produce dot graphs directlly along the template linting, a feature which is already accessible from the CLI but not from the current API.

Is this something that would be of interest to anyone else?
More generally, would it be hard to add a way to access all other CLI features from the current API?

Describe the solution you'd like

Being able to extend the ManualArgs in order to provide of string buffer or another output type that would receive the dot graph content seems to be a nice additional feature.

More generally having an API that is used by the CLI to provide all the cfn-lint features would avoid any discrepancy between the features available from the CLI and the ones available from the API.

Additional context

I might be able to help implementing this but, as many people, my bandwidth is not as extensible as I would like so I didn't want to raise any false hopes by checking the "I may be able to implement this feature request" box below.

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions