You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This security-group module **adds ingress and egress rules** to **either the default or a new**security group within a given VPC.
4
+
Refactor to use this module and avoid **hundreds of lines of very similar security group**terraform definitions.
5
5
6
-
## Simple Module Usage Example
6
+
## Usage
7
7
8
-
To use this module simply declare it like below supplying it with a mandatory VPC id. If you omit **in_ingress** a default ssh rule is created. A default **all traffic egress rule** is also created but you can override this behaviour if you so wish.
8
+
You specify every ingress rule you need in just one line with words like **ssh**, https, **sftp**, rabbitmq, kube-controller and **openvpn**. If you omit in_egress then the ubiquitous "all-traffic" is assumed.
9
9
10
-
module security_group_module
10
+
The most common usage is to specify the VPC ID and the ingress (inbound) rules To use this module simply declare it like below supplying it with a mandatory VPC id. If you omit **in_ingress** a default ssh rule is created. A default **all traffic egress rule** is also created but you can override this behaviour if you so wish.
This module defines two **list outputs** called **out_default_security_group_ids** and **out_new_security_group_ids**. Use the first after creating rules against the VPC's default security group and the second after a new security group is created (see variable in_use_default).
@@ -37,6 +50,8 @@ The security group's input variables are vital to achieving the desired behaviou
37
50
This security group module is simple but flexible as it needs to cater to many different tastes. Now follows a number of **overloading** facilities to craft your security group's behaviour.
38
51
39
52
### Specify the Creation of a Security Group
53
+
This security-group module **adds ingress and egress rules** to **either the default or a new** security group within a given VPC.
54
+
40
55
41
56
Passing **false** to the **in_use_default** flag causes the **creation of a security group**.
0 commit comments