# Filebeat AWS Module S3 input error queueURL is not in format

**URL:** <https://discuss.elastic.co/t/filebeat-aws-module-s3-input-error-queueurl-is-not-in-format/261850>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 21, 2021, 8:10pm UTC](https://discuss.elastic.co/t/filebeat-aws-module-s3-input-error-queueurl-is-not-in-format/261850 "2021-01-21T20:10:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![cjm3625](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjm3625/32/82561_2.png) [@cjm3625](https://discuss.elastic.co/u/cjm3625)\
**Post date:** [February 11, 2021, 1:02pm UTC](https://discuss.elastic.co/t/filebeat-aws-module-s3-input-error-queueurl-is-not-in-format/261850/5 "2021-02-11T13:02:17Z")

</div>

Yeah it looks like it is hardcoded to only work if the endpoint is in AWS Commercial with .amazonaws.com as the endpoint, it looks for that in the code. we would need it to be a variable so instead of looking for say  
[https://sqs](https://sqs).{REGION\_ENDPOINT}.amazonaws.com/{ACCOUNT\_NUMBER}/{QUEUE\_NAME}  
It should be something like  
[https://sqs](https://sqs).{REGION\_ENDPOINT}.{ENDPOINT}/{ACCOUNT\_NUMBER}/{QUEUE\_NAME}  
Allowing you to set the endpoint to whatever AWS ENV you are in so in our case [c2s.ic.gov](http://c2s.ic.gov)  
This is probably also hurting the people in Gov cloud and anything else that does not point to [amazonaws.com](http://amazonaws.com)

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-aws-module-s3-input-error-queueurl-is-not-in-format/261850)._
