2021-10-14 11:56:08 -04:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-02-02 17:15:17 -08:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2021-10-14 11:56:08 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
|
2023-06-02 10:05:37 -07:00
|
|
|
aws "github.com/hashicorp/boundary-plugin-aws/plugin"
|
2023-05-31 08:43:08 -04:00
|
|
|
hp "github.com/hashicorp/boundary/sdk/plugins"
|
2021-10-14 11:56:08 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2023-06-02 10:05:37 -07:00
|
|
|
if err := hp.ServePlugin(aws.NewAwsPlugin()); err != nil {
|
2021-10-14 11:56:08 -04:00
|
|
|
fmt.Println("Error serving plugin", err)
|
|
|
|
|
os.Exit(1)
|
|
|
|
|
}
|
|
|
|
|
os.Exit(0)
|
|
|
|
|
}
|