Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
21 lines
374 B
Go
21 lines
374 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
gkwp "github.com/hashicorp/go-kms-wrapping/plugin/v2"
|
|
"github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2"
|
|
)
|
|
|
|
func main() {
|
|
if err := gkwp.ServePlugin(awskms.NewWrapper()); err != nil {
|
|
fmt.Println("Error serving plugin", err)
|
|
os.Exit(1)
|
|
}
|
|
os.Exit(0)
|
|
}
|