diff --git a/plugins/aws/eksctl.go b/plugins/aws/eksctl.go new file mode 100644 index 00000000..c84ec16b --- /dev/null +++ b/plugins/aws/eksctl.go @@ -0,0 +1,26 @@ +package aws + +import ( + "github.com/1Password/shell-plugins/sdk" + "github.com/1Password/shell-plugins/sdk/needsauth" + "github.com/1Password/shell-plugins/sdk/schema" + "github.com/1Password/shell-plugins/sdk/schema/credname" +) + +func eksctlCLI() schema.Executable { + return schema.Executable{ + Name: "eksctl CLI", + Runs: []string{"eksctl"}, + DocsURL: sdk.URL("https://eksctl.io/"), + NeedsAuth: needsauth.IfAll( + needsauth.NotForHelpOrVersion(), + needsauth.NotWithoutArgs(), + ), + Uses: []schema.CredentialUsage{ + { + Name: credname.AccessKey, + Provisioner: CLIProvisioner{}, + }, + }, + } +} diff --git a/plugins/aws/plugin.go b/plugins/aws/plugin.go index a19eeca1..75255e7d 100644 --- a/plugins/aws/plugin.go +++ b/plugins/aws/plugin.go @@ -18,6 +18,7 @@ func New() schema.Plugin { Executables: []schema.Executable{ AWSCLI(), AWSCDKToolkit(), + eksctlCLI(), }, } }