src
core
special
analyze
Analyze
Entrypoint for Analyze command
__init__(self, provider, service, region, sdk=<module 'boto3' from '/home/runner/.cache/pypoetry/virtualenvs/costreduce-IwU1RX7U-py3.8/lib/python3.8/site-packages/boto3/__init__.py'>)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
provider |
| Cloud Provider (aws) | required |
service |
| Cloud Service (ec2,cloudwatch) | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/analyze.py
16 17 18 19 20 21 22 23 24 25 26 27 | |
aws(self)
Entrypoint for AWS provider
Source code in costreduce/core/analyze.py
29 30 31 32 33 34 35 36 37 38 39 40 41 | |
providers
special
aws
account_id()
Get current account id
Source code in costreduce/core/providers/aws.py
8 9 10 11 12 | |
services
special
aws
special
cloudwatch
Cloudwatch
Class for all CloudWatch services
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/cloudwatch.py
39 40 41 42 43 44 45 46 47 | |
CloudwatchAnalyze
Class for Analyze all EC2 Services
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/cloudwatch.py
10 11 12 13 14 15 16 17 18 19 | |
analyze(self)
Function for Analyze all services.
Returns:
Type | Description |
---|---|
| Table for all check |
Source code in costreduce/core/services/aws/cloudwatch.py
21 22 23 24 25 26 27 28 29 30 31 32 33 | |
ec2
ApplicationLoadBalancer
Class for all ALBv2 services
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/ec2.py
91 92 93 94 95 96 97 98 99 100 | |
ComputeOptimizer
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/ec2.py
145 146 147 148 149 150 151 152 153 154 | |
is_active(self)
Check Compute Optimizer is active
Source code in costreduce/core/services/aws/ec2.py
156 157 158 159 160 161 162 163 | |
Ec2
Class for all EC2 services
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/ec2.py
52 53 54 55 56 57 58 59 60 61 | |
Ec2Analyze
Class for Analyze all EC2 Services
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/ec2.py
11 12 13 14 15 16 17 18 19 20 21 22 | |
analyze(self)
Function for Analyze all services.
Returns:
Type | Description |
---|---|
| Table for all check |
Source code in costreduce/core/services/aws/ec2.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
s3
S3
__init__(self, sdk, region)
special
init function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdk |
| import boto3 globaly | required |
region |
| Cloud Provider region | required |
Source code in costreduce/core/services/aws/s3.py
24 25 26 27 28 29 30 31 32 33 | |