# Rds\_exporter “EmptyStaticCreds: static credentials are empty”

**URL:** <https://forums.percona.com/t/rds-exporter-emptystaticcreds-static-credentials-are-empty/15427>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** pmm\
**Created:** [April 27, 2022, 8:06am UTC](https://forums.percona.com/t/rds-exporter-emptystaticcreds-static-credentials-are-empty/15427 "2022-04-27T08:06:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![osysee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/osysee/32/6400_2.png) [@osysee](https://forums.percona.com/u/osysee)\
**Post date:** [April 27, 2022, 8:06am UTC](https://forums.percona.com/t/rds-exporter-emptystaticcreds-static-credentials-are-empty/15427/1 "2022-04-27T08:06:10Z")

</div>

rds\_exporter config file  
instances:

- region: ap-northeast-2  
instance: aurora-mysql57-test-instance  
aws\_role\_arn: arn:aws:iam::[accountNumber]:role/my\_role  
disable\_basic\_metrics: false  
disable\_enhanced\_metrics: false

The above role named “arn:aws:iam::[accountNumber]:role/my\_role” is “assumeRole” with PMM Policy

run rds\_exporter results

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/2/2ec114374031b08f68ff0569cad9481a957a9cf5.png)

Why do I get the message “EmptyStaticCreds: static credentials are empty”?

---

<div class="post-metadata">

**Author:** ![osysee](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/osysee/32/6400_2.png) [@osysee](https://forums.percona.com/u/osysee)\
**Post date:** [May 2, 2022, 9:33am UTC](https://forums.percona.com/t/rds-exporter-emptystaticcreds-static-credentials-are-empty/15427/2 "2022-05-02T09:33:29Z")

</div>

Do I need a aws\_access\_key even though I have a aws\_role\_arn?

---

<div class="post-metadata">

**Author:** ![pavel.malejik](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pavel.malejik/32/6979_2.png) [@pavel.malejik](https://forums.percona.com/u/pavel.malejik)\
**Post date:** [July 17, 2022, 6:43pm UTC](https://forums.percona.com/t/rds-exporter-emptystaticcreds-static-credentials-are-empty/15427/3 "2022-07-17T18:43:34Z")

</div>

> [@osysee](#):
>
> EmptyStaticCreds: static credentials are empty

I’ve omitted this error by deleting the field aws\_role\_arn. In my case, the rds exporter is running in the EKS cluster under the service account that already has assumed the role. So after I deleted the key aws\_role\_arn, the AWS framework was able to assume the role from the container environment variables.
