# README
go-hosts
High-level EC2 instance querying library built on top of mitchellh/goamz/ec2.
View the docs.
Example
auth, err := aws.EnvAuth()
check(err)
hosts := hosts.New(auth, aws.USWest2)
check(err)
nodes, err := hosts.Name("api-*")
check(err)
for i, node := range nodes {
fmt.Printf(" %d) %s\n", i, node.InstanceId)
}
License
MIT
# Packages
No description provided by the author
# Functions
New client with the given auth and region.