ec2

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ec2 implements various AWS EC2 operations.

Index

Constants

This section is empty.

Variables

View Source
var InstanceTypes = map[string]*InstanceType{}/* 196 elements not displayed */

InstanceTypes is a map of EC2 resources.

Functions

func WaitUntilRunning added in v1.5.0

func WaitUntilRunning(
	ctx context.Context,
	stopc chan struct{},
	ec2APIV2 *aws_ec2_v2.Client,
	asgAPIV2 *aws_asg_v2.Client,
	asgName string) (ec2Instances map[string]aws_ec2_v2_types.Instance, err error)

WaitUntilRunning describes all EC2 instances for the specified ASG. It waits until all instances are 'running'. TODO: make method (e.g. asgClient."WaitUntilRunning")

Types

type InstanceType

type InstanceType struct {
	InstanceType string
	VCPU         int64
	MemoryMb     int64
	GPU          int64
	MaxPods      int64
}

InstanceType is an EC2 instance type.

Directories

Path Synopsis
instance-types auto-generates EC2 instance types from AWS API.
instance-types auto-generates EC2 instance types from AWS API.
Package metadata queries the EC2 metadata.
Package metadata queries the EC2 metadata.

Jump to

Keyboard shortcuts

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