Hi@akhtar,
An EC2 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)