Skip to content

Build stacks by including other ruby files #152

@johnf

Description

@johnf

I've created a naive implementation in #151 which would allow the following

You have a master file env_stack.rb

CloudFormation {
  Description "Test"
  include 'parameters_one'
  include 'parameters_two'
}

you can then create _parameters_one.rb and _parameters_two.rb

Parameter("One") {
  String
}
Parameter("Two") {
  String
}

This will generate the same output as

CloudFormation {
  Description "Test"
  Parameter("One") {
    String
  }
  Parameter("Two") {
    String
  }
}

Does this make sense?

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