cherweg / logstash-input-s3-sns-sqs

logstash input downloading files from s3 Bucket by OjectKey from SNS/SQS
Other
29 stars 35 forks source link

i am getting access denied error when accessing crossaccount sqs. #79

Closed kalavathiy closed 1 year ago

kalavathiy commented 1 year ago

input { s3snssqs { region => "us-west-2" s3_default_options => { "endpoint_discovery" => true } queue => "https://sqs.us-west-2.amazonaws.com/*******/sqs-lsp-test"

queue => "https://sqs.us-west-2.amazonaws.com/********/sentinel-test-queue"

queue_owner_aws_account_id => "*****"

queue_owner_aws_account_id => "**"

visibility_timeout="5" type => "sqs-logs" tags => ["lsp"]

polling_frequency => 5

max_retries => 10

sqs_skip_delete => true codec => json s3_options_by_bucket => [ { bucket_name => "**s" credentials => { role => "arn:aws:iam::***:role/sentinel" } source_profile => "****" } ]

s3_options_by_bucket => [

{ bucket_name => "sentinel-test-2"

credentials => { role => "arn:aws:iam::****:role/sentinel" }

source_profile => "**"

}

]

add_field => { "caller_identity" => "%{[aws][sts][get-caller-identity][arn]}" } add_field => { sqs_client_options => { api_version => '2012-11-05' stub_responses => false region => 'us-west-2' only_allow => ['SendMessage', 'ReceiveMessage'] } }

sqs_client_options => {

api_version => '2012-11-05'

stub_responses => false

region => 'us-west-2'

only_allow => ['SendMessage', 'ReceiveMessage', 'DeleteMessage']

}

} }