169k views
5 votes
What language is used for defining stacks and templates in CloudFormation?

1) JSON
2) YAML
3) XML
4) HTML

User Ewernli
by
7.6k points

1 Answer

0 votes

Final answer:

CloudFormation uses JSON or YAML for defining stacks and templates, not HTML or XML.

Step-by-step explanation:

The language used for defining stacks and templates in CloudFormation is either JSON (JavaScript Object Notation) or YAML (YAML Ain't Markup Language). Both of these languages provide ways to describe data structures in a text format and are widely used in configuring and managing infrastructure as code, which is at the heart of what CloudFormation does. HTML and XML are not used for this purpose within CloudFormation.

User Csilk
by
7.8k points