[Docs]: Example for security group rules show port ranges in a confusing manner #29895
Labels
documentation
Introduces or discusses updates to documentation.
service/vpc
Issues and PRs that pertain to the vpc service.
Milestone
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_security_group_ingress_rule
Description
The provided example values and also the ordering of the fields makes it look like a security group is some sort of mapping bit it isn't, instead it's a range of ports. In this case the example is for a very large 8000-port range, from port 80 all the way to port 8080. This would almost certainly not be what people would want, and in fact if it was used verbatim would be a security issue.
Suggestion would be to have both
to_port
andfrom_port
be the same value, and change the field ordering so they're next to each other, e.g.If the desire is to show how a range of ports is supported, perhaps VNC could be used as an example, e.g.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: