Skip to content

Proposal: Templates from gems #261

@mipearson

Description

@mipearson

(unlike the other proposals, this one is for stack_master 1, not 2)

I want to be able to ship CFN templates (.yml) as part of a private gem for others to use.

The workflow would be:

  1. Add to Gemfile, lock to patch version
  2. Reference template(s) in gem in stack_master.yml as normal
  3. Update incrementally & carefully if desired

stack_master.yml would look like:

stacks:
  us-east-1:
    my-vpc:
      gem-template: mygem:vpc.yml

mygem would be discovered and an error displayed if the gem is not found or the template does not exist. mygem would only consist of a mostly-empty mygem.gemspec and a templates directory.

Optionally other stack_master compiled formats (eg sparkleformation, cfndsl) could be supported.

This would also allow people wishing to modify / contribute back to the templates in the gem to vendor it locally using the existing Bundler mechanisms for working on code locally

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions