I'm new to Chef and AWS and I'm learning how to deploy a cluster, throw Chef, to AWS Ec2. For that I'm using chef-provisioning-aws.
I'm executing chef-client from my workstation directly to AWS, I don't have a chef-server (use chef-zero). This is how I execute:
chef-client -z -r "role[example_cluster]"
Yes, I've a role for the cluster and in the run_list I have
"recipe[example::aws_setup]",
"recipe[example::create_cluster]"
On the example::create_cluster recipe I use machine_batch to create the machines and call the following recipes:
recipe 'example::recipe_1'
recipe 'example::recipe_2'
I also have some attributes defined and I override some of them on the Role file, but when I execute chef-client, the attributes on example::aws_setup and example::create_cluster are the ones I override on the Role file, but the ones used in example::recipe_1 and example::recipe_2 are the default ones.
Does someone have a guide or can help me with this?
Thanks in advance.