-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ipv6Address count for NetworkInterface
- Loading branch information
Showing
7 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/cfnlint/data/schemas/patches/extensions/all/aws_ec2_networkinterface/manual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/dependentExcluded", | ||
"value": { | ||
"Ipv6AddressCount": [ | ||
"Ipv6Addresses" | ||
], | ||
"Ipv6Addresses": [ | ||
"Ipv6AddressCount" | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
test/fixtures/results/integration/aws-ec2-networkinterface.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[ | ||
{ | ||
"Filename": "test/fixtures/templates/integration/aws-ec2-networkinterface.yaml", | ||
"Id": "9d40fd01-0117-1816-b924-0b0c89ee7a5e", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 20, | ||
"LineNumber": 15 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"NetworkInterface", | ||
"Properties", | ||
"Ipv6Addresses" | ||
], | ||
"Start": { | ||
"ColumnNumber": 7, | ||
"LineNumber": 15 | ||
} | ||
}, | ||
"Message": "'Ipv6Addresses' should not be included with 'Ipv6AddressCount'", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "When certain properties are specified other properties should not be included", | ||
"Id": "E3020", | ||
"ShortDescription": "Validate that when a property is specified another property should be excluded", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#dependentexcluded" | ||
} | ||
}, | ||
{ | ||
"Filename": "test/fixtures/templates/integration/aws-ec2-networkinterface.yaml", | ||
"Id": "e26370d1-ed25-a14c-9a48-7cabc88945ec", | ||
"Level": "Error", | ||
"Location": { | ||
"End": { | ||
"ColumnNumber": 23, | ||
"LineNumber": 17 | ||
}, | ||
"Path": [ | ||
"Resources", | ||
"NetworkInterface", | ||
"Properties", | ||
"Ipv6AddressCount" | ||
], | ||
"Start": { | ||
"ColumnNumber": 7, | ||
"LineNumber": 17 | ||
} | ||
}, | ||
"Message": "'Ipv6AddressCount' should not be included with 'Ipv6Addresses'", | ||
"ParentId": null, | ||
"Rule": { | ||
"Description": "When certain properties are specified other properties should not be included", | ||
"Id": "E3020", | ||
"ShortDescription": "Validate that when a property is specified another property should be excluded", | ||
"Source": "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/cfn-schema-specification.md#dependentexcluded" | ||
} | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
test/fixtures/templates/integration/aws-ec2-networkinterface.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Parameters: | ||
SubnetId: | ||
Type: AWS::EC2::Subnet::Id | ||
SecurityGroupId: | ||
Type: AWS::EC2::SecurityGroup::Id | ||
Resources: | ||
NetworkInterface: | ||
Type: AWS::EC2::NetworkInterface | ||
Properties: | ||
Description: "a network interface" | ||
GroupSet: | ||
- !Ref SecurityGroupId | ||
SourceDestCheck: false | ||
SubnetId: !Ref SubnetId | ||
Ipv6Addresses: | ||
- Ipv6Address: abc | ||
Ipv6AddressCount: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters