How to describe EC2 instances using Boto3
Hi Guys, I am new to the boto3 module. I want to describe the instances available in the AWS account using boto3. How can I do that?
An EC2 boto3 instance is a virtual server in Amazon's Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. You can describe one or more EC2 instances as shown below.
import boto3
ec2 = boto3.client('ec2')
response = ec2.describe_instances()
print(response)