Ec2 role based access failing for s3-input-plugin if we upgrade ec2 to use metadata v2

Logstash Version : logstash 7.2.0
aws-cli/1.18.157 Python/3.6.8 Linux/4.18.0-305.12.1.el8_4.x86_64 botocore/1.18.16
logstash-input-s3 (3.4.1)
aws-cli/1.18.157 Python/3.6.8 Linux/4.18.0-305.12.1.el8_4.x86_64 botocore/1.18.16

Error
undefined method credentials

[2022-01-14T11:40:16,478][ERROR][logstash.javapipeline ] Pipeline aborted due to error {:pipeline_id=>"web-smtp", :exception=>#<NoMethodError: undefined method credentials' for nil:NilClass>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/aws-sdk-core-2.11.298/lib/aws-sdk-core/signers/v4.rb:45:in initialize'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-amazon_es-7.0.1-java/lib/logstash/outputs/amazon_es/http_client/manticore_adapter.rb:108:in perform_request'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-amazon_es-7.0.1-java/lib/logstash/outputs/amazon_es/http_client/pool.rb:291:in perform_request_to_url'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-outp

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