TerraformIssuesAliases.

TerraformIssuesFromContent(ICakeContext, string, DirectoryPath) Method

Summary

Gets an instance of a provider for reading output from terraform validate -json.

Syntax

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

Examples

Read warnings reported by terraform validate:

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
validateOutput string Content of the terraform validate command.
terraformRootPath DirectoryPath Path to the directory of the Terraform scripts. Either the full path or the path relative to the repository root.

Return Value

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