Module: Chef::Provisioning::AWSDriver::AWSTaggable
- Included in:
- Resource::AwsAutoScalingGroup, Resource::AwsCloudwatchAlarm, Resource::AwsDhcpOptions, Resource::AwsEbsVolume, Resource::AwsElasticsearchDomain, Resource::AwsImage, Resource::AwsInstance, Resource::AwsInternetGateway, Resource::AwsLoadBalancer, Resource::AwsNetworkAcl, Resource::AwsNetworkInterface, Resource::AwsRdsInstance, Resource::AwsRdsParameterGroup, Resource::AwsRdsSubnetGroup, Resource::AwsRouteTable, Resource::AwsS3Bucket, Resource::AwsSecurityGroup, Resource::AwsSubnet, Resource::AwsVpc, Resource::LoadBalancer, Resource::Machine, Resource::MachineImage
- Defined in:
- lib/chef/provisioning/aws_driver/aws_taggable.rb
Overview
This module is meant to be included in a resource that is taggable This will add the appropriate attribute that can be converged by the provider TODO it would be nice to not have two seperate modules (taggable/tagger)
and just have the provider decorate the resource or vice versa. Complicated
by resources <-> providers being many-to-many.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/chef/provisioning/aws_driver/aws_taggable.rb', line 8 def self.included(klass) # This should be a hash of tags to apply to the AWS object # # @param aws_tags [Hash] Should be a hash of keys & values to add. Keys and values # can be provided as symbols or strings, but will be stored in AWS as strings. klass.attribute :aws_tags, kind_of: Hash end |