terraform

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsInstalled

func CheckIsInstalled() error

func GetPublicIPs added in v1.3.1

func GetPublicIPs(terraformDir string, zones []string) (map[string][]string, error)

GetPublicIPs retrieves the public IP addresses for instances in different zones.

It takes in the following parameters: - terraformDir: the directory where the Terraform configuration is located. - zones: a list of zones for which to retrieve the public IP addresses.

It returns a map of zones to arrays of corresponding public IP addresses. If an error occurs, it returns nil and the error.

func InitConf

func InitConf() (*hclwrite.File, *hclwrite.Body, error)

InitConf creates hclFile where we define all terraform configuration in hclFile.Body() and create .tf file where we save the content in

func RemoveDirectory

func RemoveDirectory(terraformDir string) error

RemoveDirectory remove terraform directory in .avalanche-cli. We need to call this before and after creating ec2 instance

func SaveConf

func SaveConf(terraformDir string, hclFile *hclwrite.File) error

SaveConf writes all terraform configuration defined in hclFile to tfFile

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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