compute

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compute

type Compute struct {
	// Non spot return a on-demand insntace
	Instance *ec2.Instance
	// Spot instance is created through a mixedPolicy on a as group
	// in case of asg it is accessed through the LB
	AutoscalingGroup *autoscaling.Group
	LB               *lb.LoadBalancer
}

func (*Compute) GetHostIP

func (c *Compute) GetHostIP(public bool) (ip pulumi.StringInput)

function returns the ip to access the target host

func (*Compute) Readiness

func (compute *Compute) Readiness(ctx *pulumi.Context,
	cmd string,
	prefix, id string,
	mk *tls.PrivateKey, username string,
	b *bastion.Bastion,
	dependecies []pulumi.Resource) error

Check if compute is healthy based on running a remote cmd

type ComputeRequest

type ComputeRequest struct {
	Prefix string
	ID     string
	VPC    *ec2.Vpc
	Subnet *ec2.Subnet
	LB     *lb.LoadBalancer
	// Array of TCP ports to be
	// created as tg for the LB
	LBTargetGroups []int
	AMI            *ec2.LookupAmiResult
	KeyResources   *keypair.KeyPairResources
	SecurityGroups pulumi.StringArray
	InstaceTypes   []string
	DiskSize       *int
	Airgap         bool
	Spot           bool
	// Only required if Spot is true
	SpotPrice        string
	UserDataAsBase64 pulumi.StringPtrInput
}

func (*ComputeRequest) NewCompute

func (r *ComputeRequest) NewCompute(ctx *pulumi.Context) (*Compute, error)

TODO on-demand could be changed to to policy trying spot

Jump to

Keyboard shortcuts

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