Categorygithub.com/segmentio/go-ec2
modulepackage
1.0.0
Repository: https://github.com/segmentio/go-ec2.git
Documentation: pkg.go.dev

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

# Structs

Client provides some higher level methods for filtering, however if you need more flexibility you should use .Query().
Query provides a chainable API for building up filters.