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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAMIByName

func GetAMIByName(ctx *pulumi.Context,
	imageName, owner string, filters map[string]string) (*ec2.LookupAmiResult, error)

Looks for the AMI ID on the current Region based on name it only allows images from AWS and self

Types

type ImageInfo added in v0.6.0

type ImageInfo struct {
	Region *string
	Image  *awsEC2.Image
}

func FindAMI added in v0.6.0

func FindAMI(amiName, amiArch string) (*ImageInfo, error)

This function check all regions to get the AMI filter by its name it will return the first region where the AMI is offered

func IsAMIOffered added in v0.6.0

func IsAMIOffered(amiName, amiArch, region string) (bool, *ImageInfo, error)

IsAMIOffered checks if an ami based on its Name is offered on a specific region

Jump to

Keyboard shortcuts

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