ec2 module: added support for attribute-based idempotency