-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] aws-core-sdk 3.207.0 #258
Comments
I'd dig a little deeper to find out the change in the SDK that caused this, what does that account ID need to be set to? Did you try adding the account id here: logstash-output-opensearch/lib/logstash/outputs/opensearch/http_client/manticore_adapter.rb Line 29 in ccd571f
|
Hi, I don't know what is the purpose for the account id parameter in this case, I just want to use the instance IAM profile. I'm sorry but I've not so much knowledge about ruby/packages, I'm just a 'final user' I've tried what you suggested (adding account id to manticore_adapter.rb but then I have the following error:
Thanks for your help |
Looks like it's more complicated. Just to set expectations I won't have cycles to debug this, hopefully someone reading this can help. |
I am seeing the same error on aws-sdk-core-3.209.1 |
I am running into same error while running unit tests
Error trace
I made few changes in manitcore_adapter.rb
Added getter and setter for account_id
But I am not sure thats right way to fix this issue |
It looks right to me, but I would rely on tests and trying out the change. Appreciate a PR. |
I've looked into this issue some. The Ruby SDK added There are a few closed issues in the Ruby SDK related to this:
From what I can tell, the I think a short-term solution may be to add the Longer-term, we may need another way to create credentials. This API is marked as private and thus they may make breaking changes like this more often. |
Adds the account_id configuration to the AWSIAMCredential struct to work with the latest versions of the AWS SDK for Ruby. Test against the latest versions of Logstash during the integration testing to also test against these versions of the AWS SDK. Resolves opensearch-project#258 Signed-off-by: David Venable <[email protected]>
Describe the bug
There is a new minor version of aws-core-sdk gem -> https://rubygems.org/gems/aws-sdk-core/versions/3.207.0
This version requires the 'account_id' parameter -> https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-core/CHANGELOG.md?plain=1#L13
My current config, which was working fine with the gem version 3.205.0, uses the aws_iam auth_type to authenticate with the iam profile of the instance:
Since the new version release I'm not able to use this output plugin with my current config, I've tried to add the 'account_id' parameter but I get the same error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Logstash process should start and index data to the aws opensearch cluster using the IAM profile of the instance where logstash is running.
Plugins
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: