From 19fb6f1233d8c2875f924532c459432c5ebe96c2 Mon Sep 17 00:00:00 2001 From: Nils Hanke Date: Tue, 15 Nov 2022 13:29:00 +0100 Subject: [PATCH] Make AWS vars passing consistent with other CSPs --- cli/internal/cloudcmd/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/internal/cloudcmd/create.go b/cli/internal/cloudcmd/create.go index 44ee1069e..94a24d796 100644 --- a/cli/internal/cloudcmd/create.go +++ b/cli/internal/cloudcmd/create.go @@ -90,7 +90,7 @@ func (c *Creator) createAWS(ctx context.Context, cl terraformClient, config *con ) (idFile clusterid.File, retErr error) { defer rollbackOnError(context.Background(), c.out, &retErr, &rollbackerTerraform{client: cl}) - vars := &terraform.AWSVariables{ + vars := terraform.AWSVariables{ CommonVariables: terraform.CommonVariables{ Name: name, CountControlPlanes: controlPlaneCount, @@ -107,7 +107,7 @@ func (c *Creator) createAWS(ctx context.Context, cl terraformClient, config *con Debug: config.IsDebugCluster(), } - ip, err := cl.CreateCluster(ctx, cloudprovider.AWS, vars) + ip, err := cl.CreateCluster(ctx, cloudprovider.AWS, &vars) if err != nil { return clusterid.File{}, err }