JSON Schema for AWS CloudFormation templates.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
examples
scripts
src
.gitignore
Dockerfile
LICENSE
README.md
docker-compose.yaml
package-lock.json
package.json
renovate.json

README.md

cfn-schema

JSON Schema for AWS CloudFormation templates.

demo1 demo2

Schema URLs

Usage

With Visual Studio Code

Open Workspace Settings by pressing Ctrl + , or ⌘ + ,.

Choose schema URL correspondent to AWS region you are going to use and add JSON Schema setting like this.

{
  "json.schemas": [
    {
      "fileMatch": ["*.cfn.json"],
      "url": "https://y13i.github.io/cfn-schema/us-west-2.min.json"
    }
  ]
}

Save your template file with the extension .cfn.json. That's it.

If you prefer YAML, use YAML Support by Red Hat extension and set like this.

{
  "yaml.schemas": {
    "https://y13i.github.io/cfn-schema/us-west-2.min.json": "*.cfn.yaml"
  }
}

See also...

With other editors

Development

Build

npm run build

Test

npm test