# Chef AWS Provisioning & iam\_instance\_profile

**URL:** <https://discourse.chef.io/t/chef-aws-provisioning-iam-instance-profile/7267>\
**Category:** Chef Infra (archive)\
**Created:** [November 3, 2015, 8:35pm UTC](https://discourse.chef.io/t/chef-aws-provisioning-iam-instance-profile/7267 "2015-11-03T20:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ff-pspiess](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@ff-pspiess](https://discourse.chef.io/u/ff-pspiess)\
**Post date:** [November 3, 2015, 8:35pm UTC](https://discourse.chef.io/t/chef-aws-provisioning-iam-instance-profile/7267/1 "2015-11-03T20:35:25Z")

</div>

I am getting an error when I try to create a machine with bootstrap options iam\_instance-profile. I found that this was fixes in chef-provisioning-aws 1.4.1 which I believe that I have but it doesn’t matter how I specify the instance profile it does not work. What did I do wrong?

This is the error I get:

Error: Chef failed to converge: machine[devops-peter-haproxy] (provision::makehaproxy line 54) had an error: Aws::IAM::Errors::ValidationError: 1 validation error detected: Value ‘{:name=\>“chef-bootstrap-role”}’ at ‘instanceProfileName’ failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]+  
Reason: (Aws::IAM::Errors::ValidationError) machine[devops-peter-haproxy] (provision::makehaproxy line 54) had an error: Aws::IAM::Errors::ValidationError: 1 validation error detected: Value ‘{:name=\>“chef-bootstrap-role”}’ at ‘instanceProfileName’ failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]+

This is how I checked the version of Chef Provisioning:

pspiess-macbook-pro:chefdk-provisioning pspiess$ chef gem list | grep chef-provisioning | grep -v azure | grep -v fog | grep -v vagrant  
chef-provisioning (1.4.1)  
chef-provisioning-aws (1.4.1)

Thanks for the help!

Peter
