-
Notifications
You must be signed in to change notification settings - Fork 48
Add config for sts_credentials_region #65
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
Conversation
This is useful for fluentd deployments running in a different region than their elasticsearch cluster and want to take advantage of local sts endpoints
@@ -20,6 +20,7 @@ class AwsElasticsearchServiceOutput < ElasticsearchOutput | |||
config_param :ecs_container_credentials_relative_uri, :string, :default => nil #Set with AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variable value | |||
config_param :assume_role_session_name, :string, :default => "fluentd" | |||
config_param :assume_role_web_identity_token_file, :string, :default => nil | |||
config_param :sts_credentials_region, :string, :default => "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored the code for better testability, but held off on updating tests since it looks like tests are broken even on master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove these newlines?
In Ruby style, using one newline between the functions is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
@@ -20,6 +20,7 @@ class AwsElasticsearchServiceOutput < ElasticsearchOutput | |||
config_param :ecs_container_credentials_relative_uri, :string, :default => nil #Set with AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variable value | |||
config_param :assume_role_session_name, :string, :default => "fluentd" | |||
config_param :assume_role_web_identity_token_file, :string, :default => nil | |||
config_param :sts_credentials_region, :string, :default => nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add this parameter in README documentation?
https://github.com/atomita/fluent-plugin-aws-elasticsearch-service/blob/master/README.md
Only existing in plugin code, users don't get noticed this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated an example in the README to include this config option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you for your work! 👍
@atomita Could you release the new version of this plugin? |
This is useful for fluentd deployments running in a different region
than their elasticsearch cluster and want to take advantage of local sts
endpoints