Skip to content
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

logagent to load credentials from EC2 role instead of aws_config.json #286

Open
aliartiza75 opened this issue Sep 1, 2021 · 5 comments
Open

Comments

@aliartiza75
Copy link
Contributor

Hi @adnanrahic,

Scenario

I am using an EC2 instance and running a node application on it using pm2. I want to forward the logs to AWS Elasticsearch.

Problem

I have already read the documentation and found out that it uses a config file to load credentials but in my scenario, I cannot use a config file like this due to some security protocols.

Currently, I assign a role to the AWS EC2 instance and the application on the server uses those role credentials.

Possible Solution

A possible solution could be if we specify some precedence in the configuration like AWS does is doing.

Is there any other channel where I can discuss this issue?

Thank you in advance

@otisg
Copy link
Member

otisg commented Sep 1, 2021

This is a good place to discuss. Maybe you can submit a PR?

@aliartiza75
Copy link
Contributor Author

@otisg yes sure.

@aliartiza75
Copy link
Contributor Author

Hi @megastef,

I need some help regarding the AWS elasticsearch output plugin implementation. After reading the codebase I found out that you have imported the aws-sdk but didn't use(maybe i am wrong) it.

Will it be able to load credentials from the role attached to EC2 instance?

@aliartiza75
Copy link
Contributor Author

@otisg I have created a PR for this change. Please get someone to review it. As I am not a JS dev I have tried my best.

#288

@otisg
Copy link
Member

otisg commented Nov 2, 2021

Thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants