This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.Terraform.
Summary
Gets an instance of a provider for reading output from
terraform validate -json from disk.
- Assembly
- Cake
.Issues .Terraform .dll - Namespace
- Cake
.Issues .Terraform - Containing Type
- Terraform
Issues Aliases
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 |
|---|---|
| Cake |
|
| Cake |
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. |
