packer-cn/plugin/builder-amazon-instance/main.go

16 lines
270 B
Go

package main
import (
"github.com/mitchellh/packer/builder/amazon/instance"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(instance.Builder))
server.Serve()
}