question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli command to transform sam template to regular cloudformation template?

See original GitHub issue

Describe your idea/feature/enhancement

I believe it could be useful to add a command to allow a user to see the cloudformation template produced after serverless transforms are applied.

Proposal

sam transform --template-file PATH --output-template-file PATH

Additional Details

A couple reasons I see value here:

  1. education - for a new user, there’s mystery around the effects of using sam syntax … e.g. what policies are going to be automatically generated based on various properties i specify

  2. some mechanisms in the wild are not yet friendly towards serverless transforms and being able to provide them with vanilla cloudformation, while still taking advantage of sam syntax during compose phase is a nice compromise

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:17
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
babealcommented, Apr 23, 2020

Another upvote. I would want to use the SAM CLI to generate the CF template to be then aggregated as a child template in a parent application stack.

6reactions
marty-brandon-nihcommented, Apr 16, 2020

Our group could also use this. Developers do a SAM build for local testing, but cloud engineers maintain a separate Cloud Formation template for deployment. Generating the CF template would reduce work and errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cli command to transform sam template to regular ... - GitHub
Describe your idea/feature/enhancement I believe it could be useful to add a command to allow a user to see the cloudformation template ......
Read more >
Converting From AWS SAM to CloudFormation
This post will show you how to take an existing SAM application and convert it to a CloudFormation template (CFT).
Read more >
sam deploy - AWS Serverless Application Model
The AWS SAM CLI first tries to locate a template file built using the sam build command, located in the .aws-sam subfolder, and...
Read more >
How to transform a Serverless Application Model (SAM ...
For SAM projects already deployed, you should find the native CloudFormation template, post transformation, in the CloudFormation console.
Read more >
aws-sam-translator - PyPI
The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found