Created
April 14, 2020 13:50
-
-
Save dym-ok/78a62d591d5c1eeaf403658e2f692bc1 to your computer and use it in GitHub Desktop.
Convert SAM template to CloudFormation template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sam validate -t sam.yaml --debug 2>&1 | \ | |
awk '/Translated template is:/,/is a valid SAM Template/' | \ | |
tail -n +2 | \ | |
fgrep -v 'is a valid SAM Template' > output-template.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment