Skip to content

Commit

Permalink
out_kinesis_streams: add support for external_id
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley authored and edsiper committed Jan 21, 2022
1 parent 082e877 commit 4f45109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/out_kinesis_streams/kinesis.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static int cb_kinesis_init(struct flb_output_instance *ins,
ctx->aws_provider = flb_sts_provider_create(config,
ctx->sts_tls,
ctx->base_aws_provider,
NULL,
(char *) ctx->external_id,
(char *) ctx->role_arn,
session_name,
(char *) ctx->region,
Expand Down Expand Up @@ -443,6 +443,13 @@ static struct flb_config_map config_map[] = {
"Custom endpoint for the STS API."
},

{
FLB_CONFIG_MAP_STR, "external_id", NULL,
0, FLB_TRUE, offsetof(struct flb_kinesis, external_id),
"Specify an external ID for the STS API, can be used with the role_arn parameter if your role "
"requires an external ID."
},

{
FLB_CONFIG_MAP_STR, "log_key", NULL,
0, FLB_TRUE, offsetof(struct flb_kinesis, log_key),
Expand Down
1 change: 1 addition & 0 deletions plugins/out_kinesis_streams/kinesis.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ struct flb_kinesis {
const char *region;
const char *role_arn;
const char *log_key;
const char *external_id;
int retry_requests;
char *sts_endpoint;
int custom_endpoint;
Expand Down

0 comments on commit 4f45109

Please sign in to comment.