ec2

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AMD64Arch = "x86_64"
	ARM64Arch = "arm64"
)

Variables

This section is empty.

Functions

func CreateLaunchTemplate

func CreateLaunchTemplate(e aws.Environment, name string, ami, instanceType, iamProfileArn, keyPair, userData pulumi.StringInput) (*ec2.LaunchTemplate, error)

func GetAMIFromSSM

func GetAMIFromSSM(e aws.Environment, paramName string) (string, error)

func LatestUbuntuAMI

func LatestUbuntuAMI(e aws.Environment, arch string) (string, error)

Latest 22.04 (jammy)

func NewAutoscalingGroup

func NewAutoscalingGroup(e aws.Environment, name string,
	launchTemplateID pulumi.StringInput,
	launchTemplateVersion pulumi.IntInput,
	desiredCapacity, minSize, maxSize int,
) (*autoscaling.Group, error)

func NewDedicatedHost added in v0.0.4

func NewDedicatedHost(e aws.Environment, name string, args DedicatedHostArgs, opts ...pulumi.ResourceOption) (*ec2.DedicatedHost, error)

NewDedicatedHost creates an EC2 Dedicated Host for Mac instances

func NewInstance

func NewInstance(e aws.Environment, name string, args InstanceArgs, opts ...pulumi.ResourceOption) (*ec2.Instance, error)

func SearchAMI

func SearchAMI(e aws.Environment, owner, name, arch string) (string, error)

Types

type DedicatedHostArgs added in v0.0.4

type DedicatedHostArgs struct {
	// Mandatory
	InstanceType string // e.g., "mac1.metal", "mac2.metal"

	// Optional
	AvailabilityZone string // If not specified, will use first available zone
	HostRecovery     string // "on" or "off", defaults to "off"
	Tags             pulumi.StringMap
}

type InstanceArgs

type InstanceArgs struct {
	// Mandatory
	AMI string

	// Defaulted
	InstanceType    string // Note that caller must ensure it matches with AMI Architecture
	KeyPairName     string
	Tenancy         string
	StorageSize     int
	InstanceProfile string

	// Optional
	UserData           string
	HTTPTokensRequired bool
	HostID             pulumi.StringInput // For dedicated host tenancy
}

Jump to

Keyboard shortcuts

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