Skip to content
A serverless API that converts CloudFormation templates between JSON and YAML formats
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
install.sh
package.sh
template.yaml
uninstall.sh

README.md

cfn-flip-service

A serverless API that converts CloudFormation templates between JSON and YAML formats.

cfn-flip-service uses cfn-flip and provides an API for it.

Usage

Converting JSON templates to YAML

POST your template with the Content-Type header set to application/json. The response body will contain the reformatted template as YAML with a Content-Type of application/x-yaml

Example

curl -X POST -H "Content-Type: application/json" -d "$(<my-cfn.template)" http://{endpoint}/

Converting YAML templates to JSON

POST your template with the Content-Type header set to application/x-yaml. The response body will contain the reformatted template as JSON with a Content-Type of application/json

Example

curl -X POST -H "Content-Type: application/x-yaml" -d "$(<my-cfn.template)" http://{endpoint}/

Maintenance

You will need the following tools installed:

Use the install.sh script to deploy or update the service.

Use the uninstall.sh script to remove the service from your account.

You can’t perform that action at this time.