awscloud
A Python Package to List AWS Cloud Resources for Different AWS Services!
Installation
Use the package manager pip to install awscloud.
pip install awscloud
Usage
import boto3, awscloud
from datetime import datetime, timedelta
## Below Start & End Date is used for Metrics Such as EC2's CPU Percentage etc.
start_date = datetime.now() - timedelta(days = 7)
end_date = datetime.now()
## Returns List of Attributes and Methods of this Package / Module.
print( dir( awscloud.AWSCloud ) )
## Refer Configuration from https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html
aws_object = awscloud.AWSCloud( session = boto3.Session( profile_name = PROFILE_NAME, region_name = REGION_NAME ) )
## List AWS EC2 Instances.
print( aws_object.List_EC2_Instances() )
## List AWS EC2 Volumes.
print( aws_object.List_EC2_Volumes() )
## List AWS EC2 Snapshots.
print( aws_object.List_EC2_Snapshots() )
## List AWS EC2 Security Groups.
print( aws_object.List_EC2_Security_Groups() )
## List AWS EC2 Load Balancers.
print( aws_object.List_EC2_Load_Balancers() )
## List AWS EC2 Network Interfaces.
print( aws_object.List_EC2_Network_Interfaces() )
## List AWS EC2 Key Pairs.
print( aws_object.List_EC2_Key_Pairs() )
## List AWS Elastic Beanstalk Applications.
print( aws_object.List_Elastic_Beanstalk_Apps() )
## List AWS S3 Buckets.
print( aws_object.List_S3_Buckets() )
## List AWS Lambda Functions.
print( aws_object.List_Lambda_Functions() )
## List AWS RDS Databases.
print( aws_object.List_AWS_RDS() )
## List AWS EC2 CPU Utilization Metrics.
print( aws_object.Get_EC2_CPU_Metrics( start_date = start_date, end_date = end_date ) )
## List AWS Trusted Advisor for Cost Optimizing.
print( aws_object.List_Cost_Trust_Advisor() )
Contributing
Pull Requests are Welcome. For Major Changes, Please Open an issue First to Discuss What You Would like to Change.
Please Make Sure to Update Tests as Appropriate.
License
Metadata
Release files for awscloud 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awscloud-0.0.1.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awscloud-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / awscloud-0.0.1.tar.gz
| Download URL | awscloud-0.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca7fb3ccd7850f646fbb5fd4f964b901ce0241370cd68d8125a5e37831a3d03b
|
|
BLAKE2b-256 checksum How to use checksums |
78d2157a530f62b61e0e8576e8cb66d4a57f7bc0bc65e8429b10f2724e1133b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / awscloud-0.0.1-py3-none-any.whl
| Download URL | awscloud-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfa9e19607c54b65af83c8d387c2383777fb81b1947ce262dd045c0bdb3c3135
|
|
BLAKE2b-256 checksum How to use checksums |
6bfdec10547182bd1d1188c165964ee95a216591bb3877d7daa19fc8a24b7bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|