An error occurred (ValidationError) when calling the CreateStack operation: Template format error: unsupported structure.



  • I see this error when running. A new cloudformation template.

    An error occurred (ValidationError) when calling the CreateStack operation: Template format error: unsupported structure.

    I am running the following

    $ aws cloudformation create-stack --stack-name stack1 --template-body s3sample.json
    

    I have checked that the JSON is valid. Thanks.



  • @hawksbill the validation of the JSON may be ok, even if the error is a little misleading, but the command line syntax is wrong, try this command:

    $ aws cloudformation create-stack --stack-name stack1 --template-body file://s3sample.json
    

Log in to reply
 

© Lightnetics 2024