Skip to content

Commit e8abf89

Browse files
[QUICKFIX] Updating dependencies to fix AWS connection issues
1 parent 4460ab6 commit e8abf89

File tree

6 files changed

+2718
-227
lines changed

6 files changed

+2718
-227
lines changed

cmd/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type GetParameterOptions struct {
6262
func GetParameter(options *GetParameterOptions) (string, error) {
6363
out, err := options.Client.GetParameter(context.TODO(), &ssm.GetParameterInput{
6464
Name: &options.Name,
65-
WithDecryption: options.Decrypt,
65+
WithDecryption: &options.Decrypt,
6666
})
6767
if err != nil {
6868
return "", err

cmd/ls.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ type GetParametersOptions struct {
108108
func GetParameters(options *GetParametersOptions, params []types.Parameter, nextToken *string) []types.Parameter {
109109
cfg := &ssm.GetParametersByPathInput{
110110
Path: options.Path,
111-
Recursive: options.Recursive,
112-
WithDecryption: options.Decrypt,
111+
Recursive: &options.Recursive,
112+
WithDecryption: &options.Decrypt,
113113
}
114114

115115
if nextToken != nil {

cmd/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func runMigrateCmd(cmd *cobra.Command, args []string) {
8282
Name: &name,
8383
Type: param.Type,
8484
Value: param.Value,
85-
Overwrite: overwrite,
85+
Overwrite: &overwrite,
8686
}
8787

8888
if _, err := clientTo.PutParameter(context.TODO(), input); err != nil {

cmd/put.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func runPutCmdContext(cmd *cobra.Command, args []string, ctx string) {
8383
Name: &path,
8484
Value: &value,
8585
Type: types.ParameterType(valueType),
86-
Overwrite: overwrite,
86+
Overwrite: &overwrite,
8787
})
8888

8989
if err != nil {
@@ -123,7 +123,7 @@ func runPutCmd(cmd *cobra.Command, args []string) {
123123
Name: &path,
124124
Value: &value,
125125
Type: types.ParameterType(valueType),
126-
Overwrite: overwrite,
126+
Overwrite: &overwrite,
127127
})
128128

129129
if err != nil {

go.mod

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,22 @@ module github.com/technicallyjosh/easy-params
33
go 1.16
44

55
require (
6-
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
76
github.com/atotto/clipboard v0.1.4
8-
github.com/aws/aws-sdk-go-v2 v1.2.1
9-
github.com/aws/aws-sdk-go-v2/config v1.1.2
10-
github.com/aws/aws-sdk-go-v2/service/ssm v1.1.2
11-
github.com/fsnotify/fsnotify v1.4.9 // indirect
12-
github.com/go-openapi/errors v0.20.0 // indirect
13-
github.com/go-openapi/strfmt v0.20.0 // indirect
7+
github.com/aws/aws-sdk-go-v2 v1.30.3
8+
github.com/aws/aws-sdk-go-v2/config v1.27.27
9+
github.com/aws/aws-sdk-go-v2/service/ssm v1.52.3
10+
github.com/go-openapi/strfmt v0.23.0 // indirect
1411
github.com/jedib0t/go-pretty v4.3.0+incompatible
15-
github.com/magiconair/properties v1.8.4 // indirect
16-
github.com/mattn/go-runewidth v0.0.10 // indirect
12+
github.com/mattn/go-runewidth v0.0.16 // indirect
1713
github.com/mitchellh/go-homedir v1.1.0
18-
github.com/mitchellh/mapstructure v1.4.1 // indirect
19-
github.com/pelletier/go-toml v1.8.1 // indirect
20-
github.com/rivo/uniseg v0.2.0 // indirect
21-
github.com/spf13/afero v1.5.1 // indirect
22-
github.com/spf13/cast v1.3.1 // indirect
23-
github.com/spf13/cobra v1.1.3
24-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
25-
github.com/spf13/viper v1.7.1
26-
go.mongodb.org/mongo-driver v1.5.0 // indirect
27-
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 // indirect
28-
golang.org/x/text v0.3.5 // indirect
29-
gopkg.in/ini.v1 v1.62.0 // indirect
14+
github.com/rivo/uniseg v0.4.7 // indirect
15+
github.com/sagikazarmark/locafero v0.6.0 // indirect
16+
github.com/spf13/cast v1.7.0 // indirect
17+
github.com/spf13/cobra v1.8.1
18+
github.com/spf13/viper v1.19.0
19+
go.mongodb.org/mongo-driver v1.16.0 // indirect
20+
go.uber.org/multierr v1.11.0 // indirect
21+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
22+
golang.org/x/sys v0.23.0 // indirect
23+
golang.org/x/text v0.17.0 // indirect
3024
)

0 commit comments

Comments
 (0)