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 ¶
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.