Git Product home page Git Product logo

Comments (4)

max-allan-surevine avatar max-allan-surevine commented on July 1, 2024 1

If it's only valid in some undocumented context : Then the issue is with the documentation.

If the documentation does not declare the unknown context then how can the tooling/users know what the context they must use is?

Considering Cfn is an AWS product, it has far too many bugs like this.

from aws-cli.

max-allan-surevine avatar max-allan-surevine commented on July 1, 2024

I think this is more about missing functionality than the Linter being wrong.

TemplateBody is a documented parameter:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-templatebody

Do we need to raise a feature request to get a documented feature to work??? I just wasted a couple of hours trying to make this work, assuming I'd got something else wrong. "It must be right, it's in the docs. Maybe I've got my !Sub wrong or something..."

from aws-cli.

sparr avatar sparr commented on July 1, 2024

There's further context in aws-cloudformation/cfn-lint#2975

Apparently TemplateBody is only valid in... some unknown context, and it's not valid when using CFN to define a Stack.

from aws-cli.

SlazyHW avatar SlazyHW commented on July 1, 2024

Got the same issue. I want to deploy a cloudformation template using the CLI which creates two sub-stacks. I want to pass the template bodies to both stacks as variables (I extract the *.yaml-files' content and convert it into *.json-syntax) but I get the following error:

"Encountered unsupported property TemplateBody"

Just wasted some hours on trying to get this right. Now I have to change to S3 buckets using the TemplateURL property. Kind of annoying because its clearly part of the documentation.

from aws-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.