bazaarvoice / cloudformation-ruby-dsl

Ruby DSL for creating Cloudformation templates
Apache License 2.0
210 stars 76 forks source link

How to use tags? #74

Closed digitaljedi2 closed 8 years ago

digitaljedi2 commented 8 years ago

I'm not sure how to use the tag capabilities in the DSL... By the example below I was hoping to see all the resources created to have both tags Foo and Bar... Is this incorrect? `

Tags

tag :Foo => ref('Foo') tag :Bar => ref('Bar')

Resources

resource "vpc", :Type => 'AWS::EC2::VPC', :Properties => { :CidrBlock => '10.0.0.0/16', :InstanceTenancy => 'default', :EnableDnsSupport => 'true', :EnableDnsHostnames => 'true', }`

temujin9 commented 8 years ago

The tag will set tags on the Cloudformation stack itself, which should set then those tags on resources created within that stack. That latter step is up to AWS' servers, not our code, and has historically lacked some coverage on underlying services.

digitaljedi2 commented 8 years ago

Thanks again...