Example
To create the AWSEC2Handler object with AWS credentials. The AWSEC2Handler connects to AWS EC2 using access credentials (access key, secret key) and a region name. It enables seamless interaction with EC2 for retrieving and managing compute resources.ec2_handler_test.py
The get_instances method fetches all EC2 instances.
The get_security_groups method fetches all security groups.
The get_volumes method fetches all EBS volumes.
The get_amis method fetches all AMIs owned by the account.
The get_snapshots method fetches all snapshots owned by the account.
The get_key_pairs method fetches all key pairs.
The get_network_interfaces method fetches all network interfaces.
The collect_all_ec2 method fetches all EC2 resources in parallel.