Skip to content

Commit 46e80b3

Browse files
author
Josh Newman
committed
fix(migrate): fix client init
1 parent 74f9930 commit 46e80b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/migrate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ func runMigrateCmd(cmd *cobra.Command, args []string) {
4747
regionTo = regionFrom
4848
}
4949

50-
clientFrom := ssm.New(ssm.Options{
51-
Region: regionFrom,
50+
clientFrom := ssm.NewFromConfig(awsConfig, func(o *ssm.Options) {
51+
o.Region = regionFrom
5252
})
5353

54-
clientTo := ssm.New(ssm.Options{
55-
Region: regionTo,
54+
clientTo := ssm.NewFromConfig(awsConfig, func(o *ssm.Options) {
55+
o.Region = regionTo
5656
})
5757

5858
fmt.Println(text.FgBlue.Sprintf("Migrating %s \"%s\" ==> %s \"%s\"", regionFrom, pathFrom, regionTo, pathTo))

0 commit comments

Comments
 (0)