list All AWS EC2 instances and VPCs in all regions using Ruby SDK
gem install aws-sdk
https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html
Set following environment variables.
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
ruby list_ec2_instances.rb