# Is it mandatory to give value of session\_token: '\<session\_token\>' to reaad AWS values

**URL:** <https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 14, 2019, 3:32pm UTC](https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920 "2019-11-14T15:32:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [November 14, 2019, 3:32pm UTC](https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920/1 "2019-11-14T15:32:28Z")

</div>

Hi All,  
Trying to see how I can read the AWS monitoring values  
from the link "[https://www.elastic.co/guide/en/beats/metricbeat/7.4/metricbeat-module-aws.html](https://www.elastic.co/guide/en/beats/metricbeat/7.4/metricbeat-module-aws.html)" , thanks @Kaiyan_Sheng for sharing the docs with me  
I could see the reference for session\_token, is the entry of session\_token necessary.  
While configuring other third part tools with AWS, I have not used session\_token at all, only  
`Password,Access key ID,Secret access key`  
is need to configure the tool for interacting with AWS.

Can we exclude the session\_token entry in the yml file

thanks  
Joseph John

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [November 15, 2019, 2:55pm UTC](https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920/2 "2019-11-15T14:55:12Z")

</div>

Hi @Joseph_John, `session_token` is not required for running aws module. This is only for users need MFA for their AWS account. Feel free to remove the `session_token` line from the config and give it a try!

Also personally I prefer using `credential_profile_name` 😄

---

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [November 16, 2019, 11:59am UTC](https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920/3 "2019-11-16T11:59:17Z")

</div>

Will try out and update

---

<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:** [December 14, 2019, 11:59am UTC](https://discuss.elastic.co/t/is-it-mandatory-to-give-value-of-session-token-session-token-to-reaad-aws-values/207920/4 "2019-12-14T11:59:20Z")

</div>

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