# Assume role in s3snssqs logstash plugin

**URL:** <https://discuss.elastic.co/t/assume-role-in-s3snssqs-logstash-plugin/246795>\
**Category:** Logstash\
**Created:** [August 28, 2020, 4:55pm UTC](https://discuss.elastic.co/t/assume-role-in-s3snssqs-logstash-plugin/246795 "2020-08-28T16:55:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayakumar\_R\_R](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jayakumar\_R\_R](https://discuss.elastic.co/u/Jayakumar_R_R)\
**Post date:** [August 28, 2020, 4:55pm UTC](https://discuss.elastic.co/t/assume-role-in-s3snssqs-logstash-plugin/246795/1 "2020-08-28T16:55:01Z")

</div>

```auto
Can we use assume role in s3sqssns plugin?

s3snssqs{
        queue => "name"
         queue_owner_aws_account_id => "1111111"
access_key_id => "accesskey of trusted account"
secret_key_id => "secretkey of trusted account"
role_arn => "assumed role created by trusting account"
codec => line
s3_options_by_bucket => [
                         {
                             bucket_name => "bucketname"
}
]

}

I am trying to pull data from another account using assumed role,but iam getting the below error.

Cannot establish connection to Amazon SQS {:error =><AWS::SQS:: Errors:: NonexistentQueue: The specified queue does not exist or you do not have access to it.>}

Verify your queuename and your credentials.

Failed to execute action {:id=>:main, : action_type=>Logstash::ConvergeResulr::Failed action, : message=>"Could not execute action: Logstash::Pipeline action::Create/pipeline_id:main,action_result: false", :backtrace=>nil}

Could someone help me to resolve this issue?

```

---

<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:** [September 25, 2020, 4:55pm UTC](https://discuss.elastic.co/t/assume-role-in-s3snssqs-logstash-plugin/246795/2 "2020-09-25T16:55:06Z")

</div>

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