func hasLaunchPermission(conn *ec2.EC2, image_id string, account_id string) (bool, error) {
	attrs, err := conn.DescribeImageAttribute(&ec2.DescribeImageAttributeInput{
		ImageId:   aws.String(image_id),
		Attribute: aws.String("launchPermission"),
	})
	if err != nil {
		return false, err
	}

	for _, lp := range attrs.LaunchPermissions {
		if *lp.UserId == account_id {
			return true, nil
		}
	}
	return false, nil
}