Comments (4)
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.
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.
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.
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)
- dynamodb update-table missing delete-protection-enabled option
- KMS Decrypt with valid key and cipher-text returns error HOT 2
- Cross platform deploy on aws cloudformation package breaks path seperators
- s3api create-bucket does not work for express one zone directory buckets HOT 2
- (AccessDenied) when calling the ListBuckets operation: Access Denied HOT 1
- EC2::Client#describe_security_groups undocumented & unchecked options limitation. HOT 3
- aws sso login failed on WSL2
- Neither Cryptography 38.0.4 or Cryptography 40.0.1 works HOT 1
- S3Api get-bucket-location returns "EU" for buckets created in eu-west-1 (Ireland) HOT 2
- Have a command to generate a Redis Auth token just like RDS
- Add creds to .netrc for codeartifact pip login. HOT 2
- [AWS][EC2] create-volume tagging request is made in a second time causing rejection from tagging policies
- list-state-machines does not return all records HOT 2
- aws lambda invoke retries while lambda execution has not failed HOT 1
- Warnings when using Python 3.12 HOT 3
- Unable to generate long-living pre-signed URL HOT 7
- role parameter in eks update-kubeconfig is not being used for aws cli connection HOT 4
- `aws codeartifact login --tool npm` fails with "This command does not support workspaces." HOT 1
- Command to turn versioning on on Digital Ocean Space/Bucket fails with 'argument of type 'NoneType' is not iterable' HOT 4
- InvalidGrantException while refresh auth token HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.