-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
investigatingIssue is being investigatedIssue is being investigated
Description
I am using the opensearch logstash output plugin to write data to an aws opensearch instance. Internally this gem uses the aws ruby sdk to load credentials (https://github.com/opensearch-project/logstash-output-opensearch/blob/2868d41bede5bb25ba1ef71b7c70a63ae740f445/lib/logstash/outputs/opensearch/http_client/manticore_adapter.rb#L74). I am using an assumed role web identity for authentication and thus the following code is used to load credentials from environment variables:
This results in:
undefined method `metric' for Aws::Plugins::UserAgent:Class
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-core-3.233.0/lib/aws-sdk-core/credential_provider_chain.rb:175:in `assume_role_web_identity_credentials'
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-core-3.233.0/lib/aws-sdk-core/credential_provider_chain.rb:13:in `block in resolve'
org/jruby/RubyArray.java:2009:in `each'
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-core-3.233.0/lib/aws-sdk-core/credential_provider_chain.rb:12:in `resolve'
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-opensearch-2.0.3-java/lib/logstash/outputs/opensearch/http_client/manticore_adapter.rb:87:in `aws_iam_auth_initialization'
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-opensearch-2.0.3-java/lib/logstash/outputs/opensearch/http_client/manticore_adapter.rb:56:in `initialize'
org/jruby/RubyClass.java:936:in `new'
stack trace shortened.
Metadata
Metadata
Assignees
Labels
investigatingIssue is being investigatedIssue is being investigated