puppet resource commands with defaults from hiera
I want to run command like
puppet resource ec2_instance instanceName ensure=present region=eu-central-1 security_groups='nnn' subnet='nnn' instance_type=m3.medium
and expect puppet to lookup for required attribute 'image_id' from hiera where I have predefined hash in common.yaml
But it seems not working for me:
Error: Could not set 'present' on ensure: missing required parameter params[:image_id]
Is it possible at all in puppet RAL?
Thanks ahead, Sergey