I have the following very simple CloudFormation template:
---
AWSTemplateFormatVersion: 2010-09-09
Parameters:
InstanceType:
Description: 'EC2 Instance Type'
Default: t2.micro
Resources:
EC2Instance:
Type: 'AWS::EC2::Instance'
Properties:
ImageId: ami-08589eca6dcc9b39c
InstanceType: !Ref InstanceType
KeyName: default
On validating this template using:
▶ aws cloudformation validate-template --template-body file://cloudformation.yml
I receive the following cryptic error message:
An error occurred (ValidationError) when calling the ValidateTemplate operation:
Template format error: Every Parameters object must contain a Type member.
What does it mean? I googled for this error message and found nothing.