aws-cloudformation / cfn-lint

CloudFormation Linter
MIT No Attribution
2.43k stars 586 forks source link

[cfn-lint] E3030 for config resources #2228

Closed theksi closed 2 years ago

theksi commented 2 years ago

cfn-lint version: (cfn-lint --version) cfn-lint 0.58.2 Description of issue. Error on an invalid value for Compliance resourceTypes that is in fact valid

Please provide as much information as possible:

Cfn-lint uses the CloudFormation Resource Specifications as the base to do validation. These files are included as part of the application version. Please update to the latest version of cfn-lint or update the spec files manually (cfn-lint -u)

PatMyron commented 2 years ago

(Recommended workaround with resource-level ignores)

We're currently pulling that enum from Config's SDK model. That resource type hasn't be added there yet 😕

kddejong commented 2 years ago

More details

{
    "op": "add",
    "path": "/ValueTypes/AWS::Config::ConfigurationRecorder.ResourceTypes",
    "value": {
      "botocore": "config/2014-11-12/ResourceType"
    }
},

https://github.com/boto/botocore/blob/develop/botocore/data/config/2014-11-12/service-2.json#L6481

Also doesn't seem to exist in the API docs too https://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html

This issue is also a reference https://github.com/boto/botocore/issues/2535

kddejong commented 2 years ago

I'm debating if we should remove the allowed values for this one @PatMyron Especially with capabilities that are described in this blog