Skip to content

Whats the right way to error templates across regions #607

Description

@kddejong

cfn-lint version: (cfn-lint --version)
0.12.1

Description of issue.
When Linting a template against multiple regions its possible to miss errors that could be of value.

Take this template.

Resources:
  Cluster:
    Type: "AWS::EKS::Cluster"
    Properties:
      Name: String
      ResourcesVpcConfig: EKS Cluster ResourcesVpcConfig
      RoleArn: String
      Version: String

when linting it seems weird to have different errors depending on the region.

➜  cfn-lint test.yaml --region us-east-1
E3002 Expecting an object at Resources/Cluster/Properties/ResourcesVpcConfig
test.yaml:6:7

➜  cfn-lint test.yaml --region us-west-1 us-east-1
E3001 Invalid or unsupported Type AWS::EKS::Cluster for resource Cluster in us-west-1
test.yaml:3:5

I'm wondering if it should be.

➜  cfn-lint test.yaml --region us-west-1 us-east-1
E3001 Invalid or unsupported Type AWS::EKS::Cluster for resource Cluster in us-west-1
test.yaml:3:5

E3002 Expecting an object at Resources/Cluster/Properties/ResourcesVpcConfig
test.yaml:6:7

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions