Skip to content

Commit

Permalink
fix:aws eks creation (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax authored Oct 28, 2024
1 parent dc86b4a commit eabef44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"errors"
"fmt"
"net/http"
"os"
"time"

runtime "github.com/konstructio/kubefirst-api/internal"
Expand Down Expand Up @@ -332,6 +333,10 @@ func (clctrl *ClusterController) InitController(def *types.ClusterDefinition) er
// Instantiate provider clients and copy cluster controller to cluster type
switch clctrl.CloudProvider {
case "aws":
os.Setenv("AWS_ACCESS_KEY_ID", clctrl.AWSAuth.AccessKeyID)
os.Setenv("AWS_SECRET_ACCESS_KEY", clctrl.AWSAuth.SecretAccessKey)
os.Setenv("AWS_SESSION_TOKEN", clctrl.AWSAuth.SessionToken)
os.Setenv("AWS_REGION", clctrl.CloudRegion)
conf, err := awsinternal.NewAwsV3(
clctrl.CloudRegion,
clctrl.AWSAuth.AccessKeyID,
Expand Down

0 comments on commit eabef44

Please sign in to comment.