Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Usage of aws module from resource abstraction layer

$
0
0
Hey folks, How you guys maintain you ec2 instances using aws module from command line? I intend to rely on RAL or mco to be able to provision instances on demand, without declaring them in puppet/hiera at all. I want to let my build server to execute command like puppet resource ec2_instance ensure=present = so it could take defaults(ami, region etc) from hiera and kick few build instances with unique hostnames. I faced with some issues here: not all params can be passed from command line, namely user_data, block_devices puppet resource ec2_instance someinstance ensure=present region=eu-central-1 image_id=xxxxx security_groups='xxxxx' subnet=xxxxx instance_type=m3.medium block_devices=[{'delete_on_termination':'true', 'volume_size':10, 'device_name':'/dev/sda'}] Error: Could not run: Invalid parameter setting volume_size:10, seems its not possible to pass hash to 'puppet resource' Any thoughts on how I can these attributes or how to force usage of defaults from hiera? Much appreciated, Sergey

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>