Retrieve EC2 instance details using Boto3-client
Before yousing Boto 3, you should set up authentication credentials for AWS account. It can be found in the IAM Console. If you have the AWS CLI installed, then you can use it to configure your credentials file:
$ aws configure