compute

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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