TerraformIssuesAliases.

TerraformIssuesFromFilePath(ICakeContext, FilePath) Method

Summary

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

Syntax

public static IIssueProvider TerraformIssuesFromFilePath(this ICakeContext context, FilePath validateOutputFilePath)

Examples

Read warnings reported by terraform validate:

var issues =
        ReadIssues(
            TerraformIssuesFromFilePath(@"c:\build\validate.json"),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
validateOutputFilePath FilePath Path to the output of the terraform validate command.

Return Value

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