Code Monkey home page Code Monkey logo

Comments (7)

jtimberman avatar jtimberman commented on August 23, 2024

We definitely should, this is essential functionality for our own internal project tracking.

from chef-provisioning-aws.

tyler-ball avatar tyler-ball commented on August 23, 2024

kitchen-ec2 handles this by having a config[:tags] element that is auto populated with {:created_by => 'Test Kitchen'} but can be expanded with user supplied tags.

I think we could do something similar. @fnichol suggested having users supply this to the with_driver block because these tags will apply to more than just machines. They apply to most AWS objects.

from chef-provisioning-aws.

danieljimenez avatar danieljimenez commented on August 23, 2024

+1, we use this for elastic search's EC2 discovery.

from chef-provisioning-aws.

lantrix avatar lantrix commented on August 23, 2024

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 chef-provisioning-1.2.0.dev.0.gem and the provisioning of EC2 instances successfully tagged them.

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

from chef-provisioning-aws.

wrightp avatar wrightp commented on August 23, 2024

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.

from chef-provisioning-aws.

tyler-ball avatar tyler-ball commented on August 23, 2024

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

from chef-provisioning-aws.

tyler-ball avatar tyler-ball commented on August 23, 2024

This fix was released and is currently in 1.3.x branch of CPA

from chef-provisioning-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.