terraform

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 25 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

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"configuration_file_paths": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
	"paths": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
	"plan_file_paths": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
	"state_file_paths": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},
}

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