def get_ec2_details(options = {})
      stack_resources = resources(options)
      ec2_resource_ids = get_resource_ids(stack_resources, "AWS::EC2::Instance")
      ec2 = Fog::Compute::AWS.new(:aws_access_key_id => @access_key_id, :aws_secret_access_key => @secret_access_key, :region => @region)
      ec2_details = {}
      ec2_resource_ids.each do |key, value|
        ec2_instance_details = ec2.describe_instances('instance-id' => value)
        ec2_details[key] = ec2_instance_details.body["reservationSet"][0]["instancesSet"][0] rescue nil
      end
      return ec2_details
    end
def get_ec2_details(options = {})
      stack_resources = resources(options)
      ec2_resource_ids = get_resource_ids(stack_resources, "AWS::EC2::Instance")
      ec2 = Fog::Compute::AWS.new(:aws_access_key_id => @access_key_id, :aws_secret_access_key => @secret_access_key, :region => @region)
      ec2_details = {}
      ec2_resource_ids.each do |key, value|
        ec2_instance_details = ec2.describe_instances('instance-id' => value)
        ec2_details[key] = ec2_instance_details.body["reservationSet"][0]["instancesSet"][0] rescue nil
      end
      return ec2_details
    end
Get details of all EC2 instances in a stack

 ==== Examples
   cloud = Cloudster::Cloud.new(
    :access_key_id => 'aws_access_key_id',
    :secret_access_key => 'aws_secret_access_key',
    :region => 'us-east-1'
   )
   cloud.get_ec2_details(:stack_name => 'ShittyStack')

 ==== Parameters
 * options<~Hash>
   * :stack_name : A string which will contain the name of the stack

 ==== Returns
 * A hash of instance details where the key is the logical instance name and value is the instance detail