Skip to content
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

Stack tags on creation #22

Closed
herebebogans opened this issue Feb 2, 2017 · 3 comments
Closed

Stack tags on creation #22

herebebogans opened this issue Feb 2, 2017 · 3 comments

Comments

@herebebogans
Copy link
Contributor

herebebogans commented Feb 2, 2017

There's currently no support for creating tag / value pairs for the CF stack itself?

Thoughts on extending the yaml to something like.

templates:
  mystack:
    template_file: mystack.rb
    stacks:
      tags:
        - Name: Name
          Value: My application stack
      uat:
        tags:
          - Name: Environment
            Value: uat
          - Name: Cost_Center
            Value: Development
        params:
          InstanceType: t2.micro
      prod:
        tags:
          - Name: Environment
            Value: prod
          - Name: Cost_Center
            Value: Business
        params:
          InstanceType: m4.xlarge

The tags would then be passed to the create_stack / update_stack api.

@ampedandwired
Copy link
Owner

ampedandwired commented Feb 6, 2017

That's correct, tagging the actual stack is not implemented yet, but it's a good idea. What do you think about simplifying the yaml syntax a bit like this?

templates:
  mystack:
    template_file: mystack.rb
    stacks:
      tags:
        Name: My application stack
      uat:
        tags:
          Environment: uat
          Cost_Center: Development
        params:
          InstanceType: t2.micro
      prod:
        tags:
          Environment: prod
          Cost_Center: Business
        params:
          InstanceType: m4.xlarge

@herebebogans
Copy link
Contributor Author

Please review #23 - likely a much easier way to do the template to stack override.

@herebebogans
Copy link
Contributor Author

Closing - will update Readme.md with tag example on next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants