AWSexit code > 0

An error occurred (ValidationError)

$An error occurred (ValidationError) when calling the CreateStack operation: Template format error: JSON not well-formed

Analysis

The parameters you sent to the AWS API are invalid (wrong format, missing required fields, etc.).

Common Triggers

  • Malformed JSON/YAML template (CloudFormation).
  • Invalid characters in names.

Debug Checks

  • $Validate templates with a linter.

Resolution

1
Correct the parameter format.
2
Fix the template syntax.