-
Notifications
You must be signed in to change notification settings - Fork 49
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
Adding endpoint_credentials param and changed Slice to SliceStable for sorting. #36
Conversation
cloudwatch/cloudwatch.go
Outdated
@@ -165,6 +167,14 @@ func newCloudWatchLogsClient(roleARN string, sess *session.Session, endpoint str | |||
} | |||
svcConfig.EndpointResolver = endpoints.ResolverFunc(cwCustomResolverFn) | |||
} | |||
if credsEndpoint != "" { | |||
logrus.Infof("Trying to get credentials from credentials_endpoint %s", credsEndpoint) |
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.
This info statement is redundant since you already print it when you read the parameter.
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.
Yeah, makes sense. will remove it
fluent-bit-cloudwatch.go
Outdated
@@ -83,6 +83,8 @@ func getConfiguration(ctx unsafe.Pointer, pluginID int) cloudwatch.OutputPluginC | |||
logrus.Infof("[cloudwatch %d] plugin parameter auto_create_group = '%v'\n", pluginID, config.AutoCreateGroup) | |||
config.CWEndpoint = output.FLBPluginConfigKey(ctx, "endpoint") | |||
logrus.Infof("[cloudwatch %d] plugin parameter endpoint = '%s'\n", pluginID, config.CWEndpoint) | |||
config.CredsEndpoint = output.FLBPluginConfigKey(ctx, "credentials_endpoint") | |||
logrus.Info("[cloudwatch %d] plugin parameter credentials_endpoint = %s\n", pluginID, config.CredsEndpoint) |
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.
This should be Infof
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.
Thanks!
Will make both the changes and create a new revision
Ran the cloudwatch integ tests; they passed. |
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.