Skip to content

Commit

Permalink
Fix: pod not picking up role from service account
Browse files Browse the repository at this point in the history
  • Loading branch information
croesnick committed Dec 5, 2023
1 parent 198bf1e commit 88c5e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/checkers/periodicAwsChecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (p *PeriodicAwsChecker) StartChecking() {
p.exporter.ResetMetrics()

// Create a Session with a custom region
svc := secretsmanager.New(session.New(), aws.NewConfig().WithRegion(p.awsRegion))
session, _ := session.NewSession()
svc := secretsmanager.New(session, aws.NewConfig().WithRegion(p.awsRegion))

for _, secretName := range p.awsSecrets {
glog.Info("Getting secret " + secretName + " from AWS Secrets Manager")
Expand Down

0 comments on commit 88c5e30

Please sign in to comment.