A Python Package to List AWS Cloud Resources for Different AWS Services!
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awscloud-0.0.1.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file awscloud-0.0.1.tar.gz
.
File metadata
- Download URL: awscloud-0.0.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7fb3ccd7850f646fbb5fd4f964b901ce0241370cd68d8125a5e37831a3d03b |
|
MD5 | 430003a7556023ea82fe836606e3a20b |
|
BLAKE2b-256 | 78d2157a530f62b61e0e8576e8cb66d4a57f7bc0bc65e8429b10f2724e1133b3 |
File details
Details for the file awscloud-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: awscloud-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfa9e19607c54b65af83c8d387c2383777fb81b1947ce262dd045c0bdb3c3135 |
|
MD5 | 5feb29046fb581a43553514cf6c846cd |
|
BLAKE2b-256 | 6bfdec10547182bd1d1188c165964ee95a216591bb3877d7daa19fc8a24b7bba |