# AWS Module in Metricbeat

**URL:** <https://discuss.elastic.co/t/aws-module-in-metricbeat/185733>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [June 13, 2019, 10:34pm UTC](https://discuss.elastic.co/t/aws-module-in-metricbeat/185733 "2019-06-13T22:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maneo99](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@maneo99](https://discuss.elastic.co/u/maneo99)\
**Post date:** [June 13, 2019, 10:34pm UTC](https://discuss.elastic.co/t/aws-module-in-metricbeat/185733/1 "2019-06-13T22:34:33Z")

</div>

I am currently in the process of implementing the aws module in Metricbeat. I have followed the [documentation](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-aws.html) for setup and everything looks ok. However, I am getting the following error:

beat: Exiting: 1 error: 1 error: error creating aws metricset: Failed DescribeRegions: EmptyStati cCreds: static credentials are empty

Here is the metricbeat.yml configuration for the aws module.  
metricbeat.modules:

- module: aws  
period: 300s  
metricsets:
  - ec2  
access\_key\_id: '{AWS\_SESSION\_TOKEN: "access\_id"}' secret\_access\_key: '{SECRET\_ACCESS\_KEY: "secret"}'  
default\_region: '${DEFAULT\_REGION:us-east-1}'

The server is Centos7. The only module enabled is the aws module. I have the policy setup, but it appears to not get to that point.

Any ideas?

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [June 14, 2019, 1:42am UTC](https://discuss.elastic.co/t/aws-module-in-metricbeat/185733/2 "2019-06-14T01:42:35Z")

</div>

Hi,

Please use triple backticks ``` to enclose config when you post on the forum because its yaml and the indentation is critical.  
As is we can’t read the config snippet you posted.

Once that is done I’m pretty sure I can try this module on my metricbeat testing floor as we use AWS too and I want to see this module in action anyway to consider its use. So I’ll see if I can repro your issue. (Of course if someone spot the problem and can help in the interim they will too)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2019, 1:42am UTC](https://discuss.elastic.co/t/aws-module-in-metricbeat/185733/3 "2019-07-12T01:42:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
