Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Validation fails for VpcEndpointType property of AWS::EC2::VPCEndpoint resource #220

Open
aoggz opened this issue Dec 19, 2018 · 3 comments
Labels

Comments

@aoggz
Copy link

aoggz commented Dec 19, 2018

cfn-lint does not accept the VpcEndpointType property on the AWS::EC2::VPCEndpoint resource. It expects VPCEndpointType. CloudFormation does not accept VPCEndpointType.

Here's the yaml for the resource currently at issue:

  SnsVpcEndpoint:
    Type: AWS::EC2::VPCEndpoint
    Properties:
      RouteTableIds:
        - !Ref RouteTableId
      ServiceName: !Join ['.', ['com.amazonaws', !Ref 'AWS::Region', 'sns']]
      VpcId: !Ref VpcId
      VpcEndpointType: Interface

Changing VpcEndpointType to VPCEndpointType will cause the CloudFormation stack to fail, but it will appease cfn-lint.

This was originally reported in #180.

@martysweet
Copy link
Owner

Hi @aoggz, thanks for the issue.

This appears to be an issue with the cloudformation specification provided by AWS.

https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json

 "VPCEndpointType": {
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype",
          "PrimitiveType": "String",
          "Required": false,
          "UpdateType": "Immutable"
        },

I will raise this with AWS.

@martysweet martysweet added the bug label Dec 19, 2018
@aoggz
Copy link
Author

aoggz commented Dec 19, 2018

Okay, cool. I did see that in the resource specification in this repository but wasn't sure how to approach. Thank you for the quick response!

@PatMyron
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants