Skip to content

Commit f2ce41e

Browse files
Merge pull request #504 from jonasws/main
Add `awslogs` executable to aws plugin
2 parents 5be9962 + 33170fd commit f2ce41e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

plugins/aws/awslogs.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package aws
2+
3+
import (
4+
"github.com/1Password/shell-plugins/sdk"
5+
"github.com/1Password/shell-plugins/sdk/needsauth"
6+
"github.com/1Password/shell-plugins/sdk/schema"
7+
"github.com/1Password/shell-plugins/sdk/schema/credname"
8+
)
9+
10+
func awslogsCli() schema.Executable {
11+
return schema.Executable{
12+
Name: "awslogs",
13+
Runs: []string{"awslogs"},
14+
DocsURL: sdk.URL("https://github.com/jorgebastida/awslogs"),
15+
NeedsAuth: needsauth.IfAll(
16+
needsauth.NotForHelpOrVersion(),
17+
needsauth.NotWithoutArgs(),
18+
),
19+
Uses: []schema.CredentialUsage{
20+
{
21+
Name: credname.AccessKey,
22+
Provisioner: CLIProvisioner{},
23+
},
24+
},
25+
}
26+
}

plugins/aws/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func New() schema.Plugin {
2020
AWSCDKToolkit(),
2121
AWSSAMCLI(),
2222
eksctlCLI(),
23+
awslogsCli(),
2324
},
2425
}
2526
}

0 commit comments

Comments
 (0)