joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
313 stars 88 forks source link

Fix: pod not picking up role from service account #152

Closed croesnick closed 9 months ago

croesnick commented 9 months ago

The cert-exporter does not properly assume the role stored in env variable AWS_ROLE_ARN. Apparently, switching from session.New() to session.NewSession() should fix it: https://github.com/aws/aws-sdk-go/issues/4436