ec2

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 5 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 PollUntilRunning added in v0.5.0

func PollUntilRunning(
	timeout time.Duration,
	lg *zap.Logger,
	ec2API ec2iface.EC2API,
	instanceIDs ...string) (ec2Instances map[string]*ec2.Instance, err error)

PollUntilRunning describes EC2 instances by batch, and waits until all instances are 'running'.

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