diff --git a/plugins/aws/awslogs.go b/plugins/aws/awslogs.go new file mode 100644 index 00000000..5f5d2609 --- /dev/null +++ b/plugins/aws/awslogs.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 awslogsCli() schema.Executable { + return schema.Executable{ + Name: "awslogs", + Runs: []string{"awslogs"}, + DocsURL: sdk.URL("https://github.com/jorgebastida/awslogs"), + 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 75255e7d..7def358d 100644 --- a/plugins/aws/plugin.go +++ b/plugins/aws/plugin.go @@ -19,6 +19,7 @@ func New() schema.Plugin { AWSCLI(), AWSCDKToolkit(), eksctlCLI(), + awslogsCli(), }, } }