Logstash Access Denied Error Encountered with AWS S3

Hi can anyone please help to see what is possibly causing this error?

I have not changed any of my AWS user or role policy, neither is there any explicit deny nor changes to logstash config.

The error suddenly came after we made a new deployment to production, which is deployed on the Evolve platform. However, the code changes did not touch any of the logstash config file. Everything was working fine before the deployment.

I have reached out to various support teams.. Between AWS and Evolve the connection is fine. Just having issue for logstash to hit S3.

Below is the error logs that I got.

[2024-09-02T11:40:46,144][ERROR][logstash.javapipeline ][e2e_mb] Pipeline error {:pipeline_id=>"e2e_mb", :exception=>#<Aws::STS::Errors::AccessDenied: User: arn:aws:iam::692479878294:user/user-autoprd-sg-g1-dbsa-s3read is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::692479878294:role/role-user-autoprd-sg-g1-dbsa-s3read>, :backtrace=>["/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:20:in `call'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/plugins/idempotency_token.rb:18:in `call'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/seahorse/client/plugins/response_target.rb:21:in `call'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/seahorse/client/request.rb:70:in `send_request'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/seahorse/client/base.rb:207:in `block in define_operation_methods'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/assume_role_credentials.rb:49:in `refresh'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/refreshing_credentials.rb:20:in `initialize'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.632/lib/aws-sdk-core/assume_role_credentials.rb:40:in `initialize'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/logstash-mixin-aws-4.4.1/lib/logstash/plugin_mixins/aws_config/v2.rb:67:in `assume_role'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/logstash-mixin-aws-4.4.1/lib/logstash/plugin_mixins/aws_config/v2.rb:17:in `aws_options_hash'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-s3-3.8.3/lib/logstash/inputs/s3.rb:444:in `get_s3object'", "/c2edigi/logstash-7.17.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-s3-3.8.3/lib/logstash/inputs/s3.rb:106:in `register'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:232:in `block in register_plugins'", "org/jruby/RubyArray.java:1821:in `each'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:231:in `register_plugins'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:390:in `start_inputs'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:315:in `start_workers'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:189:in `run'", "/c2edigi/logstash-7.17.1/logstash-core/lib/logstash/java_pipeline.rb:141:in `block in start'"], "pipeline.sources"=>["/c2edigi/logstash-7.17.1/pipelines/e2e_performance.conf"], :thread=>"#<Thread:0x42846870 run>"}