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

Add AWSCloud plugin #80

Open
VigneshSP94 opened this issue Apr 11, 2019 · 0 comments
Open

Add AWSCloud plugin #80

VigneshSP94 opened this issue Apr 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@VigneshSP94
Copy link

VigneshSP94 commented Apr 11, 2019

I believe this project is all about monitoring cloud platforms, so why not add support for AWS. AWS has a robust API package boto3. Below is a snip, I will be glad to take this up if I can get the project and contribution details.

class Aws:

    def __init__(self, aws_key, aws_id, aws_reg, end_pt_url):
        self.aws_key = aws_key
        self.aws_id = aws_id
        self.aws_reg = aws_reg
        self.end_pt_url = end_pt_url

    def session_to_aws(self):
        # this gets the instances from the given aws account.
        vpcc = boto3.session.Session()
        return vpcc.resource(service_name='ec2', use_ssl=True, verify=False, aws_access_key_id=self.aws_id,
                             aws_secret_access_key=self.aws_key,
                             region_name=self.aws_reg, endpoint_url=self.end_pt_url)`

This can grab the instance, SG and all other stuff. Then we can work on serializing the data and send it to the appropriate indexing engine.

@susam susam changed the title Support for AWS Add AWSCloud plugin Apr 12, 2019
@susam susam added the enhancement New feature or request label Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants