-
Notifications
You must be signed in to change notification settings - Fork 333
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
Poor documentation for from_port, to_port in ec2_groups #397
Comments
Files identified in the description: If these files are inaccurate, please update the |
@mcandre: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
That's a missing part in the module documentation. So yes. for all other proto values, you must specify
There is an example with multipl ports and ranges. - name: mb
ec2_group:
name: mbtest01
description: mb test 01
region: eu-central-1
state: present
vpc_id: "{{ VPC }}"
purge_rules_egress : True
purge_rules: True
rules:
- proto: tcp
ports: 0-65535
cidr_ip: 10.0.0.0/8
rule_desc: all port ranges in tcp
- proto: icmp
from_port: -1
to_port: -1
cidr_ip: 10.0.0.0/8
rule_desc: only available for icmp
- proto: all
cidr_ip: "{{ lookup('dig', 'osuv.de') }}/32"
rule_desc: all from osuv.de
rules_egress: [] |
Hi @mcandre, thank you for reporting this issue. Would you be willing to open a PR to address this issue? Thank you. |
ec2_group: update documentation for specifying port ranges Depends-on: #429 SUMMARY Added missing part of documentation for specifying port ranges as -1 value in parameter from_port and to_port is only supported for proto:icmp. Fixes #397 ISSUE TYPE Docs Pull Request COMPONENT NAME ec2_group Reviewed-by: Jill R <None> Reviewed-by: Markus Bergholz <git@osuv.de> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None> Reviewed-by: None <None>
The documentation for specifying port ranges in security groups is confusing.
from_port
and/orto_port
, then you will get errors running your playbook.As a workaround, you can specify 0, 65535 as the port range bounds.
The text was updated successfully, but these errors were encountered: