Skip to content

cloudformation deploy command which works with v1 throws YAML validation error on v2 #4956

@revolutionisme

Description

@revolutionisme

I have the following cloudformation deploy command

aws cloudformation deploy --template-file template.yaml --stack-name stack-name --capabilities CAPABILITY_NAMED_IAM --parameter-overrides RepositoryName=repos-name BranchName=branchname StackOwner=stackownername QuotaLimit=50000000 SubDomain=subdomain

this still works properly with aws cli v1 but throws the following error with aws cli v2:

An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format error: YAML not well-formed. (line 86, column 23)

The YAML file is not changed in any way and the line 86 is completely fine. The template is indented properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions