ami

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReplica

func CreateReplica(projectName, backedURL,
	amiID, amiName, amiSourceRegion string) (err error)

func Destroy

func Destroy() (err error)

Destroy the stack

func DestroyReplica

func DestroyReplica(projectName, backedURL string) (err error)

func Exist

func Exist() bool

Check if spot option stack was created on the backed url

Types

type CopyAMIRequest

type CopyAMIRequest struct {
	Prefix        string
	ID            string
	AMISourceName string
	AMISourceArch string
	// AMITargetName string
	// If AMITargetRegion is nil
	// it will be copied to all regions
	AMITargetRegion *string
}

func (CopyAMIRequest) Create

func (r CopyAMIRequest) Create() error

So create will check if stack with state already exists, if that is the case it will pick info from its outputs If stack does not exists it will create it

type ReplicatedRequest

type ReplicatedRequest struct {
	ProjectName     string
	AMITargetName   string
	AMISourceID     string
	AMISourceRegion string
}

func (ReplicatedRequest) Replicate

func (r ReplicatedRequest) Replicate(ctx *pulumi.Context) error

Jump to

Keyboard shortcuts

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