@aws-cdk/cloudformation-diff: this.ipProtocol.toUpperCase is not a function
#28021
Labels
@aws-cdk/cloudformation-diff
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When running cdk diff over a processed cloudformation template (existing stack), some rule
ipProtocol
might be -1 (as number) which produces the exceptionthis.ipProtocol.toUpperCase is not a function
Expected Behavior
Display diff normally
Current Behavior
cdk diff
throwsthis.ipProtocol.toUpperCase is not a function
Reproduction Steps
cloudformation-include.CfnInclude
Possible Solution
This:
aws-cdk/packages/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.ts
Line 31 in f0939f2
Should be replaced by this:
Additional Information/Context
No response
CDK CLI Version
2.98.0
Framework Version
No response
Node.js Version
18
OS
Ubuntu 22.04.3 LTS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: