Skill · Data formats · Write, check and query configuration and data formats
Format, validate and lint HCL files, in CI and locally
Format HCL with terraform fmt and packer fmt, validate and lint it with TFLint, locally as in CI, reading the return codes.
Start lesson 1The Data formats domain
- 2 lessons
- ~1 h 10 of reading
- 2 quizzes
- 0 proof lab
Lessons
How to learn it
2 lessons, about ~1 h 10, in program order. Each lesson ends with its quiz.
The program
2 lessons · ~1 h 10
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
2 quizzes
At the end of the lessons: passed at 70%, they confirm the skill.
Practice
No guided lab
No guided lab practices it yet.
Proof
No proof
Neither a challenge nor a mission with a proof yet.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
Taught by
Same block · Write, check and query configuration and data formats
- Write and review a correct, unambiguous YAML document
- Query and modify a YAML document reproducibly
- Validate a YAML document with linting, schemas and automated checks
- Query and transform JSON on the command line with jq
- Validate JSON strictly and against a JSON Schema
- Produce correctly typed and escaped JSON from a script
- Query structured output with JSONPath, notably in kubectl
- Query structured output with JMESPath (AWS CLI, Azure CLI, Ansible)
- Consume a REST API reliably from a shell script
- Read and write correct HCL, separating the language from what Terraform and Packer add
- Query and modify HCL files from a script, verifiably