I am trying to list the instances on tag values of different tag keys For eg> one tag key - Environment, other tag key - Role. My code is given below :
imp
In my own python script I use the following:
import boto3 ec2client = boto3.client('ec2','us-east-1') response = ec2client.describe_instances(Filters=[{'Name' : 'instance-state-name','Values' : ['running']}])