Un-used AWS Resources
To identify Unused resources in AWS , Just import these package and call the unused_res with the following parameters
```python
unused_res("12", "xyz@gmail.com",
"zyx@gmail.com", "SAP", "sbx")
```
Days
From How long these resources has not been used. For example , If we provide days as `14`, Start date will be today date -14 , end date will be today's date.
Sender
We have used SES to send the formatted mail(html), so it is the Mail Id from where it need to send.
Receiver
Receiver Mail Id
App
For sending the subject in mail , we need these application information. Ex: SAP, ACE etc..,
Env
Against which environment is running these code. Ex: SBX, DEV,INT etc..,
As of now , the following resources can be identified as unused(Based on CPU Utilization , Invocation/request count etc..,) if they didn't used for the specified number of days.
AWS::EC2::Volume
AWS::EC2::EIP
AWS::Elasticsearch::Domain
AWS::ECS::Service
AWS::EC2::SecurityGroup
AWS::EC2::Instance
AWS::EC2::NatGateway
AWS::ElasticLoadBalancingV2::LoadBalancer
AWS::ACM::Certificate
AWS::RDS::DBCluster
AWS::S3::Bucket
AWS::DynamoDB::Table
AWS::CodeBuild::Project
AWS::Lambda::Function
AWS::ApiGateway::RestApi
AWS::ApiGatewayV2::Api
AWS::CodePipeline::Pipeline
AWS::SQS::Queue
AWS::SNS::Topic
AWS::SecretsManager::Secret
AWS::Logs::LogGroup
Many more will be added in the future
Note:
To Package these file we need WSL or Linux System/container .
Few issues which I faced during packaging : https://github.com/numpy/numpy/issues/13465
Release files for awsunusedresources 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awsunusedresources-0.1.6.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awsunusedresources-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / awsunusedresources-0.1.6.tar.gz
| Download URL | awsunusedresources-0.1.6.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a86a807e6cbf8c2e15cc81885c8567f5ec9242455d5996706956a341681143df
|
|
BLAKE2b-256 checksum How to use checksums |
7fd31ae184708e8332c4c8dcd1026028f584b93c9e3cef3a5ae835114edad5f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
|
Release files / awsunusedresources-0.1.6-py3-none-any.whl
| Download URL | awsunusedresources-0.1.6-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad26a8051753c478af22b0a20155a8b9fd6d333329f6ffbd5a25914da81791a8
|
|
BLAKE2b-256 checksum How to use checksums |
26c032bff43cb215a9f06eb961fd15222dc0bad78f51a219a27a7bdc18025357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
|