cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

Add support for multiple resource types backed by common handlers in one project

Open dchakrav-github opened this issue 6 years ago • 1 comments

Provide the ability to support different related resource types to be modeled together e.g. AWS::SQS*, AWS::Kinesis*.

dchakrav-github avatar May 30 '19 04:05 dchakrav-github

I can definitely see a use-case for this. Unfortunately, our UX relies a bit too heavily on the assumption that there's only one resource at the moment, so this would be a major refactor. But if there are any suggestions on how we might do this without degrading the UX (e.g. how to flip between resources in one repo), that would help.

One approach I could see working is "activating" a certain type by setting an environmental variable, and then us going off that. But that would still require reworking the .rpdk-config format, as well as potentially how the code generation works. For example if in Java, everything lived under src, you'd get one massive .jar, which is fine, but we'd also want to change the artifact name.

tobywf avatar Jul 12 '19 16:07 tobywf