terraform

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package terraform implements a steampipe plugin for terraform.

This plugin provides data that Steampipe uses to present foreign tables that represent Terraform resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) terraformConfig

GetConfig :: retrieve and cast connection config from query data

func NullIfEmptyMap added in v0.10.0

func NullIfEmptyMap(_ context.Context, d *transform.TransformData) (interface{}, error)

Transform function to return nil if an empty map

func ParseContent added in v0.0.4

func ParseContent(ctx context.Context, d *plugin.QueryData, path string, content []byte, p *parser.Parser) (parser.ParsedDocument, error)

func Parser

func Parser() ([]*parser.Parser, error)

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (terraform) plugin

Types

type TerraformPlanContentStruct added in v0.10.0

type TerraformPlanContentStruct struct {
	PlannedValues TerraformPlanPlannedValues `json:"planned_values"`
}

type TerraformPlanPlannedValues added in v0.10.0

type TerraformPlanPlannedValues struct {
	RootModule TerraformPlanPlannedValuesRootModule `json:"root_module"`
}

type TerraformPlanPlannedValuesRootModule added in v0.10.0

type TerraformPlanPlannedValuesRootModule struct {
	Resources []TerraformPlanResource `json:"resources"`
}

type TerraformPlanResource added in v0.10.0

type TerraformPlanResource struct {
	Name    string                 `cty:"name"`
	Type    string                 `cty:"type"`
	Mode    string                 `cty:"mode"`
	Values  map[string]interface{} `cty:"values"`
	Address string                 `cty:"address"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL