# File lib/aws/ec2/instance.rb, line 424
      def block_device_mappings
        (block_device_mapping || []).inject({}) do |m, mapping|
          device = mapping.device_name
          volume = Volume.new(mapping.ebs.volume_id, :config => config)
          attachment = Attachment.new(volume, self, device, :config => config)
          m[device] = attachment
          m
        end
      end