ec2instancetypes

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ec2instancetypes contains instance type information for the ec2 provider, generated from the AWS Price List API.

To update this package, first fetch index.json to this directory, and then run "go generate". The current index.json file can be found at:

https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegionInstanceTypes

func RegionInstanceTypes(region string) []instances.InstanceType

RegionInstanceTypes returns the instance types for the named region.

func SupportsClassic

func SupportsClassic(instanceType string) bool

SupportsClassic reports whether the instance type with the given name can be run in EC2-Classic.

At the time of writing, we know that the following instance type families support only VPC: C4, M4, P2, T2, X1. However, rather than hard-coding that list, we assume that any new instance type families support VPC only, and so we hard-code the inverse of the list at the time of writing.

See:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types

Types

This section is empty.

Jump to

Keyboard shortcuts

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