I am trying to use the CloudFormation Template Step to create a stack in AWS. I have done this before so it is not a permission/configuration issue.
The issue I run into is that when I deploy I get the following error:
Amazon.CloudFormation.AmazonCloudFormationException: The service returned an error with Error Code ValidationError and HTTP Body:
1 validation error detected: Value 'AWSTemplateFormatVersion: ‘2010-09-09’…
Default: —> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (400) Bad Request. —> System.Net.WebException: The remote server returned an error: (400) Bad Request.
If I run the exact same template and parameters directly from the AWS Console it works. So I am 99% sure the template itself is fine.
I’m stuck trying to figure out what is wrong. In my head I’m down to either the Yaml file is too long OR there is some sort of special character in the file that is throwing it off.
Is there a length limit I should be aware of? Are there any special characters that can’t be used?
Is there something else I’m missing?