aws-cloudformation / cfn-lint

CloudFormation Linter
MIT No Attribution
2.4k stars 576 forks source link

v1: E1017 {'Fn::GetAtt': ['VPC', 'Ipv6CidrBlocks']} is not of type 'array' #3320

Closed egut closed 2 weeks ago

egut commented 2 weeks ago

CloudFormation Lint Version

v1.3.0

What operating system are you using?

Ubuntu

Describe the bug

cfn-lint don't match to the right check it check for Ipv6CidrBlocks but the code say Ipv6CidrBlock (without s)

Expected behavior

cfn-lint check with the right rule Ipv6CidrBlock

Reproduction template

Example from AWS:

  mySubnet:
    Type: AWS::EC2::Subnet
    Properties:
      VpcId: !Ref myVPC
      Ipv6Native: true
      Ipv6CidrBlock: !Select [ 0, !Cidr [ !Select [ 0, !GetAtt myVpc.Ipv6CidrBlocks], 1, 64 ]]
      AssignIpv6AddressOnCreation: true