cdk synth : prints undefined for portless protocols #27874
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
cdk synth
prints a table of resources. For security groups, this table comprises:The protocol printed for GRE is
47 undefined
. At a guess, it is printing the protocol name followed by the uninitialized port number. Because GRE, as with numerous other protocols, has no concepts of ports, it would be better to simply print47
or ideally some variant ofGRE (47)
.Expected Behavior
Expected security group with inbound protocol 47 (GRE) printout:
Current Behavior
Example of security group with inbound protocol 47 (GRE) allowed:
Reproduction Steps
Pre-create an
ec2.VPC
andec2.SecurityGroup
and associate the following ingress rule with the latter:Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.104.0
Framework Version
No response
Node.js Version
v18.17.1
OS
Max OS X Sonoma
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: