E3012 Property should be of type Json - incorrectly flagging official examples
See original GitHub issuecfn-lint version:
0.51.0
Description of issue.
After upgrading to 0.51.0 today, we are now seeing new lint issues. Specifically E3012 Property should be of type Json
on the parameters section of AWS::SSM::Association
Even the example from the official docs is flagged by cfn-lint now. e.g.
Resources:
SpecificInstanceIdAssociation:
Type: AWS::SSM::Association
Properties:
Name: AWS-RunShellScript
Targets:
- Key: InstanceIds
Values:
- i-1234567890abcdef0
Parameters:
commands:
- ls
workingDirectory:
- "/"
WaitForSuccessTimeoutSeconds: 300
E3012 Property should be of type Json at Resources/SpecificInstanceIdAssociation/Properties/Parameters/commands test.yaml:11:9
E3012 Property should be of type Json at Resources/SpecificInstanceIdAssociation/Properties/Parameters/workingDirectory test.yaml:13:9
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Resolve template validation or template format errors in ... - AWS
Validate your JSON or YAML templates with the AWS CloudFormation linter ... Resources: EC2Instance01: Type: AWS::EC2::Instance Properties: ...
Read more >Amazon : Automation Approval for CloudFormation templates
It validates the CFT json/yaml templates against the cloudformation specs which includes checking valid values for resource properties and best ...
Read more >CFN Lint: AWS CloudFormation Linter - Morioh
This is an attempt to provide validation for AWS CloudFormation templates properties and their values. For values things can get pretty complicated (mappings, ......
Read more >Changelog — troposphere 4.0.1 documentation - Read the Docs
The json template indent was reduced from 4 to 1 for space savings. Old spacing can be restored ... Remove unneeded properties that...
Read more >cfn-lint - npm
A more friendly CloudFormation JSON and YAML Validator. ... from Command Line (see above examples); Detecting invalid property types ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@evilensky that can be the same template? Maybe a spacing issue. That template gives me
I’m guessing you meant
Putting in another fix for that
Not sure what started the issue as that rule didn’t change but a list is still valid json and we should consider it so. Fixing the issue inside E3012