Skip to content

Commit f03bbc8

Browse files
authored
Merge pull request #500 from skpaz/skpaz/add-eksctl-to-aws
Add eksctl support to AWS plugin
2 parents 2a7d404 + b59fbfc commit f03bbc8

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

plugins/aws/eksctl.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 eksctlCLI() schema.Executable {
11+
return schema.Executable{
12+
Name: "eksctl CLI",
13+
Runs: []string{"eksctl"},
14+
DocsURL: sdk.URL("https://eksctl.io/"),
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
@@ -18,6 +18,7 @@ func New() schema.Plugin {
1818
Executables: []schema.Executable{
1919
AWSCLI(),
2020
AWSCDKToolkit(),
21+
eksctlCLI(),
2122
},
2223
}
2324
}

0 commit comments

Comments
 (0)