generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 115
/
main.go
40 lines (36 loc) · 1.48 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-amazon/builder/chroot"
"github.com/hashicorp/packer-plugin-amazon/builder/ebs"
"github.com/hashicorp/packer-plugin-amazon/builder/ebssurrogate"
"github.com/hashicorp/packer-plugin-amazon/builder/ebsvolume"
"github.com/hashicorp/packer-plugin-amazon/builder/instance"
"github.com/hashicorp/packer-plugin-amazon/datasource/ami"
"github.com/hashicorp/packer-plugin-amazon/datasource/parameterstore"
"github.com/hashicorp/packer-plugin-amazon/datasource/secretsmanager"
amazonimport "github.com/hashicorp/packer-plugin-amazon/post-processor/import"
"github.com/hashicorp/packer-plugin-amazon/version"
"github.com/hashicorp/packer-plugin-sdk/plugin"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("chroot", new(chroot.Builder))
pps.RegisterBuilder("ebs", new(ebs.Builder))
pps.RegisterBuilder("ebssurrogate", new(ebssurrogate.Builder))
pps.RegisterBuilder("ebsvolume", new(ebsvolume.Builder))
pps.RegisterBuilder("instance", new(instance.Builder))
pps.RegisterDatasource("ami", new(ami.Datasource))
pps.RegisterDatasource("secretsmanager", new(secretsmanager.Datasource))
pps.RegisterDatasource("parameterstore", new(parameterstore.Datasource))
pps.RegisterPostProcessor("import", new(amazonimport.PostProcessor))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}