juju: github.com/juju/juju/provider/ec2/internal/ec2instancetypes Index | Files

package ec2instancetypes

import "github.com/juju/juju/provider/ec2/internal/ec2instancetypes"

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:



Package Files

doc.go generated.go instancetypes.go

func RegionInstanceTypes Uses

func RegionInstanceTypes(region string) []instances.InstanceType

RegionInstanceTypes returns the instance types for the named region.

func SupportsClassic Uses

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.



Package ec2instancetypes imports 3 packages (graph) and is imported by 10 packages. Updated 2019-09-22. Refresh now. Tools for package owners.