Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2_group: update documentation for specifying port ranges #436

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions plugins/modules/ec2_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@
- The IP protocol name (C(tcp), C(udp), C(icmp), C(icmpv6)) or number (U(https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers))
from_port:
type: int
description: The start of the range of ports that traffic is coming from. A value of C(-1) indicates all ports.
description:
- The start of the range of ports that traffic is coming from.
- A value can be between C(0) to C(65535).
- A value of C(-1) indicates all ports (only supported when I(proto=icmp)).
to_port:
type: int
description: The end of the range of ports that traffic is coming from. A value of C(-1) indicates all ports.
description:
- The end of the range of ports that traffic is coming from.
- A value can be between C(0) to C(65535).
- A value of C(-1) indicates all ports (only supported when I(proto=icmp)).
rule_desc:
type: str
description: A description for the rule.
Expand Down Expand Up @@ -156,10 +162,16 @@
- The IP protocol name (C(tcp), C(udp), C(icmp), C(icmpv6)) or number (U(https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers))
from_port:
type: int
description: The start of the range of ports that traffic is going to. A value of C(-1) indicates all ports.
description:
- The start of the range of ports that traffic is going to.
- A value can be between C(0) to C(65535).
- A value of C(-1) indicates all ports (only supported when I(proto=icmp)).
to_port:
type: int
description: The end of the range of ports that traffic is going to. A value of C(-1) indicates all ports.
description:
- The end of the range of ports that traffic is going to.
- A value can be between C(0) to C(65535).
- A value of C(-1) indicates all ports (only supported when I(proto=icmp)).
rule_desc:
type: str
description: A description for the rule.
Expand Down Expand Up @@ -269,7 +281,7 @@
# the containing group name may be specified here
group_name: example
- proto: all
# in the 'proto' attribute, if you specify -1, all, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6),
# in the 'proto' attribute, if you specify -1 (only supported when I(proto=icmp)), all, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6),
# traffic on all ports is allowed, regardless of any ports you specify
from_port: 10050 # this value is ignored
to_port: 10050 # this value is ignored
Expand Down