-
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
bootstrap tagging options #21
Comments
We definitely should, this is essential functionality for our own internal project tracking. |
kitchen-ec2 handles this by having a I think we could do something similar. @fnichol suggested having users supply this to the |
+1, we use this for elastic search's EC2 discovery. |
I see there is now tagging being implemented in #190. I'd expect the next version of the gem would include this. However, in the meantime I've just built machine node['my_cookbook']['fqdn'] do
machine_options({
:aws_tags => {:MyKey => 'MyValue', :AnotherKey => 'AnotherValue'},
:use_private_ip_for_ssh => true,
:associate_public_ip_address => false,
:source_key => node['my_cookbook']['aws_ssh_key_path'],
:bootstrap_options => {
:availability_zone => node['my_cookbook']['AZ'],
:subnet_id => node['my_cookbook']['subnet'],
:security_group_ids => [
node['my_cookbook']['secgroups']['default']
],
:private_ip_address => node['my_cookbook']['ip_address'],
:key_name => node['my_cookbook']['aws_ssh_key_id'],
:instance_type => node['my_cookbook']['instance_type']
},
:image_id => node['my_cookbook']['ami']
})
end |
Glad it worked! I've added several specs to cover multiple cases. I merged #190 sometime last week, so it will be included in the next release. |
I'm looking to get a release out this week, but I keep putting it off because there are some conflicting dependencies in the ChefDK that I'll have to do the sacred Conflicting Dependency Dance to solve |
This fix was released and is currently in 1.3.x branch of CPA |
this driver needs to the ability to tag ec2 instances. fog adds a few default tags, perhaps we should do that too
The text was updated successfully, but these errors were encountered: