TerraformIssuesAliases.

TerraformIssuesFromContent(ICakeContext, string) Method

Summary

Gets an instance of a provider for reading output from terraform validate -json for Terraform scripts in the repository root.

Syntax

public static IIssueProvider TerraformIssuesFromContent(this ICakeContext context, string validateOutput)

Examples

Read warnings reported by terraform validate:

var issues =
        ReadIssues(
            TerraformIssuesFromContent(validateOutput)),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
validateOutput string Content of the terraform validate command.

Return Value

Type Description
IIssueProvider Instance of a provider for warnings reported by terraform validate.