-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image_id should be a bootstrap_options instead of machine_option? #46
Comments
Even though the link you provide most likely refers to the In essence, this should work: with_data_center 'eu-west-1' do
machine "esc_poc_aws_driver" do
machine_options :bootstrap_options => {
:key_name => 'chefserver',
:image_id => 'ami-60a10117', # ubuntu/images/hvm/ubuntu-precise-12.04-amd64-server-20140927
:instance_type => 't2.micro',
:subnet => 'subnet-0a935c6f'
}
end
end But does not:
As you can see here, As for the Really looking forward to have your PR merged! |
For info, workaround for this: with_data_center 'eu-west-1' do
machine "esc_poc_aws_driver" do
options = {:bootstrap_options => {
:key_name => 'chefserver',
:instance_type => 't2.micro',
:subnet => 'subnet-0a935c6f'
},
:image_id => 'ami-60a10117'}
machine_options options
end
end |
That's pretty much the workaround I've used until now - setting the I had that exact same problem as I wanted to spin up instances inside a vpc. |
#89 checked in to fix this. |
As far as I can see, the image_id should be a bootstrap_option instead of a machine_option as described here.
This is also to be coherent with the fog:AWS driver.
The text was updated successfully, but these errors were encountered: