mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
feat(prowler3): first commit
This commit is contained in:
24
providers/aws/aws_provider.py
Normal file
24
providers/aws/aws_provider.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from boto3 import session
|
||||
|
||||
|
||||
################## AWS PROVIDER
|
||||
class AWS_Provider:
|
||||
def __init__(self, profile):
|
||||
self.aws_session = session.Session(profile_name=profile)
|
||||
|
||||
def get_session(self):
|
||||
return self.aws_session
|
||||
|
||||
|
||||
def provider_set_profile(profile):
|
||||
global session
|
||||
session = AWS_Provider(profile).get_session()
|
||||
|
||||
|
||||
# ################## AWS Service
|
||||
# class AWS_Service():
|
||||
# def __init__(self, service, session):
|
||||
# self.client = session.client(service)
|
||||
|
||||
# def get_client(self):
|
||||
# return self.client
|
||||
Reference in New Issue
Block a user