ec2 support for attachments