TerraformIssuesAliases.

TerraformIssuesFromFilePath(ICakeContext, FilePath, DirectoryPath) Method

Summary

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

Syntax

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

Examples

Read warnings reported by terraform validate:

var issues =
        ReadIssues(
            TerraformIssuesFromFilePath(
                @"c:\build\validate.json",
                @"c:\repo\tf")),
            @"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.
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.
GitHub