@pytest.fixture()
def ec2_instance_with_role(ec2_client, iam_role_arn, instance_profile_name):
    instances = ec2_client.run_instances(ImageId='ami-1234', MinCount=1, MaxCount=1, InstanceType='t2.micro', IamInstanceProfile=iam_role_arn[1])
    instance_id = instances.get('Instances')[0].get('InstanceId')
    assoc_resp = ec2_client.associate_iam_instance_profile(IamInstanceProfile=iam_role_arn[1], InstanceId=instance_id)
    return instance_id
@pytest.fixture()
def ec2_instance_with_role(ec2_client, iam_role_arn, instance_profile_name):
    instances = ec2_client.run_instances(ImageId='ami-1234', MinCount=1, MaxCount=1, InstanceType='t2.micro', IamInstanceProfile=iam_role_arn[1])
    instance_id = instances.get('Instances')[0].get('InstanceId')
    assoc_resp = ec2_client.associate_iam_instance_profile(IamInstanceProfile=iam_role_arn[1], InstanceId=instance_id)
    return instance_id