Open neoghostz opened 6 years ago
So this isn't working because the definition for that property is set as (in ./pkg/parsers/resources/EC2-VPCEndpoint.go
):
VPCEndpointType interface{} `yaml:"VPCEndpointType,omitempty"`
The cloudformation docs define it as (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype):
VpcEndpointType
The type of endpoint. Valid values are Interface and Gateway.
Required: No
Type: String
Update requires: No interruption
The difference being VPC
vs Vpc
.
Curiously, it's defined with uppercase in the Cloudformation JSON spec. So I'm inclined to think the actual docs are out of sync with the implementation.
The CloudFormation team has confirmed the spec is incorrect and will work to amend.
Workaround in place. Will resolve this when AWS team fixes and we remove the workaround.
hey is there any workaround i can use? i still get this issue with the latest aws-cdk
Can you try the latest version of kombustion
, it was updated recently to pass through everything without doing validation locally. Because, the cfn service is always going to be the source of truth on that, and to better work with macros.
Any key:value pair that has a value of "Interface" will be stripped and removed from the CFN definition
If you run through generate or upsert the key is removed from properties.
Currently effects 0.3.7 and 0.3.8, it could effect earlier releases.