From 7f60754ce8f3cb741f5084d99adefb4fbc8dc853 Mon Sep 17 00:00:00 2001 From: Lukasz Zajaczkowski Date: Tue, 12 Sep 2023 12:18:03 +0200 Subject: [PATCH] bump migrator --- go.mod | 2 +- pkg/provider/aws.go | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 0f478aa0..83246c11 100644 --- a/go.mod +++ b/go.mod @@ -54,7 +54,7 @@ require ( github.com/olekukonko/tablewriter v0.0.5 github.com/packethost/packngo v0.29.0 github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 - github.com/pluralsh/cluster-api-migration v0.2.12 + github.com/pluralsh/cluster-api-migration v0.2.14 github.com/pluralsh/gqlclient v1.10.0 github.com/pluralsh/plural-operator v0.5.5 github.com/pluralsh/polly v0.1.1 diff --git a/pkg/provider/aws.go b/pkg/provider/aws.go index 63349dc2..ce0d7a1f 100644 --- a/pkg/provider/aws.go +++ b/pkg/provider/aws.go @@ -134,12 +134,8 @@ func awsFromManifest(man *manifest.ProjectManifest) (*AWSProvider, error) { if err != nil { return nil, err } - accountId, err := GetAwsAccount(ctx) - if err != nil { - return nil, err - } providerCtx := map[string]interface{}{} - providerCtx["AWSAccountID"] = accountId + return &AWSProvider{Clus: man.Cluster, project: man.Project, bucket: man.Bucket, Reg: man.Region, storageClient: client, goContext: &ctx, ctx: providerCtx}, nil }