# New AWS module

**URL:** <https://discuss.elastic.co/t/new-aws-module/173129>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 20, 2019, 11:30am UTC](https://discuss.elastic.co/t/new-aws-module/173129 "2019-03-20T11:30:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![proudboffin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/proudboffin/32/42413_2.png) [@proudboffin](https://discuss.elastic.co/u/proudboffin)\
**Post date:** [March 20, 2019, 11:30am UTC](https://discuss.elastic.co/t/new-aws-module/173129/1 "2019-03-20T11:30:54Z")

</div>

Hi there, trying out the new AWS module in Metricbeat that was announced yesterday, encountering some difficulties. Two questions:

1. Is it possible to pass the AWS credentials directly in the module config and not as env variables?

2. Is the session\_token parameter mandatory?

Would be great to have the config test command verify this module configuration. Using the command does not output anything - an "all OK" message or an error message.

Thanks!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 25, 2019, 8:26am UTC](https://discuss.elastic.co/t/new-aws-module/173129/2 "2019-03-25T08:26:15Z")

</div>

Hi, for 1., yes you should be able to specify it as mentioned here in the example: [https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-aws.html](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-aws.html) Just replace `${...}` with the actual value.

If I remember correctly, the session token is only needed if you use temporary credentials.

For the config validation: Good idea. Could you file a Github issue for this?

---

<div class="post-metadata">

**Author:** ![proudboffin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/proudboffin/32/42413_2.png) [@proudboffin](https://discuss.elastic.co/u/proudboffin)\
**Post date:** [March 25, 2019, 11:37am UTC](https://discuss.elastic.co/t/new-aws-module/173129/3 "2019-03-25T11:37:51Z")

</div>

Thanks @ruflin! Inserting the creds directly worked.  
GitHub issue: [https://github.com/elastic/beats/issues/11421](https://github.com/elastic/beats/issues/11421)

---

<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:** [April 22, 2019, 1:37pm UTC](https://discuss.elastic.co/t/new-aws-module/173129/4 "2019-04-22T13:37:55Z")

</div>

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