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