resource

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(resources []terraform.Resource, confirmDevice io.Reader, force bool, dryRun bool, done chan bool)

Delete deletes the given resources via the Terraform AWS Provider.

func PrefixResourceType

func PrefixResourceType(rType string) string

PrefixResourceType prefixes a resource type with "aws_" to be a valid Terraform resource type for the AWS provider.

func Read

func Read(r io.Reader) ([]terraform.Resource, error)

Read reads resources from stdIn (when input is coming from pipe), where a line must be of the following format:

<resource_type> <resource_id> <profile> <region>\n

Types

type UpdatedResources

type UpdatedResources struct {
	Resources []terraform.Resource
	Errors    []error
}

func Update

func Update(resources []terraform.Resource, providers map[aws.ClientKey]provider.TerraformProvider) UpdatedResources

Update fetches the Terraform state for the given resources. A state is needed to delete resources via the Delete() function, which calls the Terraform AWS provider for deletion.

Jump to

Keyboard shortcuts

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