question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E3001 Missing properties raised as an error when they're not required

See original GitHub issue

cfn-lint version: 0.4.2

Description of issue.

An error about missing properties is not always useful. There are resources which don’t necessarily need properties.

Please provide as much information as possible:

  • Template linting issues:
    "WaitCondition": {
      "Type": "AWS::CloudFormation::WaitCondition",
      "CreationPolicy": {
        "ResourceSignal": {
          "Timeout": "PT15M",
          "Count": {
            "Ref": "TargetCapacity"
          }
        }
      }
    }

Getting E3001 Properties not defined for resource WaitCondition

  • Feature request:

I’m not sure if there’s a list of resources which don’t need properties in many situations. S3 buckets and WaitCondition seem like good candidates for not raising this. AWS docs say:

Use the optional Parameters section to customize your templates. so it doesn’t sound like it needs to be provided.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kddejongcommented, Aug 8, 2018

If the spec didn’t have required attributes Properties wouldn’t be required.

➜  cat test.yaml
---
AWSTemplateFormatVersion: "2010-09-09"
Resources:
  myBucket:
    Type: AWS::S3::Bucket
➜  cfn-lint test1.yaml
➜  echo $?
0
0reactions
cmmeyercommented, Aug 10, 2018

Update would be to remove the requirement – this is typically how this is handled since the current spec doesn’t support complex or logic.

I’ve created #278 to track the spec update bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

E3001 Missing properties raised as an error when they're not ...
Description of issue. An error about missing properties is not always useful. There are resources which don't necessarily need properties.
Read more >
Error "To save to server, correct the invalid missing required ...
Hi Everyone,. The problem is like "To save to server, correct the invalid missing required properties" once open any office document with ...
Read more >
Ignore missing properties during Jackson JSON ...
class);. it throws a JsonMappingException saying it cannot deserialize. Is there an annotation to ignore missing fields during deserialization?
Read more >
Impossible to calculate structure. Few properties for bars are ...
When you try to calculate a model, you see the error: Impossible to calculate structure: Few properties for bars are missing.
Read more >
A curated list of pylint errors with explanation and examples
A list of pylint-errors with reasoning and examples of erroneous and correct ... It's not required to install CLI util as long as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found