cli command to transform sam template to regular cloudformation template?
See original GitHub issueDescribe 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:
-
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
-
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:
- Created 4 years ago
- Reactions:17
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.