A cloud meta data utility.
With it, you can get popular cloud meta data, such as aws instance info, spot price, od-demand price, spot interruption info, regions info and so on.
For now, SpotMax team are providing open database for you
If you are writing some automation code with aws/aliyun, I think you can get some idea in these project!
- aws
- aliyun
go get github.com/spotmaxtech/cloudmeta
package main
import (
"fmt"
"github.com/spotmaxtech/cloudmeta"
)
func main() {
meta := cloudmeta.DefaultAWSMetaDb()
region := meta.Region().GetRegionInfo("us-east-1")
fmt.Println(region)
}