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

Ability to provide raw cloudformation #16

Open
toshke opened this issue Jun 7, 2018 · 2 comments
Open

Ability to provide raw cloudformation #16

toshke opened this issue Jun 7, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@toshke
Copy link
Member

toshke commented Jun 7, 2018

Cfhighlander templates should not necessarily rely on cfndsl templates to produce cloudformation templates. Raw YAML and JSON templates should be allowed as well with little help of cfn2dsl

@toshke toshke added the enhancement New feature or request label Jun 7, 2018
@toshke toshke changed the title Ability to provided raw cloudformation Ability to provide raw cloudformation Jun 7, 2018
@toshke toshke added the help wanted Extra attention is needed label Jun 27, 2018
@benleov
Copy link

benleov commented Oct 3, 2018

I'm using build pipeline to deploy a fairly simple template but am running into issues because I wish to include SAM templates as a nested stack as they are logically grouped and required by the application to run.

The only options available are:

  1. Migrate from SAM completely and upload artifacts manually.
  2. Use something like aws-sam-translator as described in the following issue Nested stack issue aws/serverless-application-model#90
  3. Use SAM to perform the transformation, cfn2dsl to convert to cfndsl and add as a highlander component (as you described on Gitter)

None of these options are particularly elegant. If highlander could handle the transformation automatically that would simplify the build process to simply using highlander to render then pipeline to deploy the template.

@toshke
Copy link
Member Author

toshke commented Oct 4, 2018

Full abstraction of templating engine needs quite a few changes in the code, but if done properly it could result in ability for highlander to produce templates for Azure and Google as well. At this point to allow providing yaml , json, and sam, it could be implemented as "preprocessor" that would essentially transform given template to cfndsl one - this way no abstraction is done, only preparation phase is introduced.

CfhighlanderTemplate do
   CfFormat 'SAM'
end
CfhighlanderTemplate do
   CfFormat 'json'
end
CfhighlanderTemplate do
   CfFormat 'yaml'
end

@aaronwalker thoughts, @Guslington thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants