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
@@ -40,10 +41,9 @@ This module creates following resources.
40
41
| <aname="input_name"></a> [name](#input\_name)| (Required) The name of the security group. |`string`| n/a | yes |
41
42
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| (Required) The ID of the associated VPC. |`string`| n/a | yes |
42
43
| <aname="input_description"></a> [description](#input\_description)| (Optional) The security group description. This field maps to the AWS `GroupDescription` attribute, for which there is no Update API. |`string`|`"Managed by Terraform."`| no |
43
-
| <aname="input_egress_rules"></a> [egress\_rules](#input\_egress\_rules)| (Optional) A list of egress rules in a security group. |`any`|`[]`| no |
44
-
| <aname="input_ingress_rules"></a> [ingress\_rules](#input\_ingress\_rules)| (Optional) A list of ingress rules in a security group. |`any`|`[]`| no |
44
+
| <a name="input_egress_rules"></a> [egress\_rules](#input\_egress\_rules) | (Optional) The configuration for egress rules of the security group. Each block of `egress_rules` as defined below.<br> (Required) `id` - The ID of the egress rule. This value is only used internally within Terraform code.<br> (Optional) `description` - The description of the rule.<br> (Required) `protocol` - The protocol to match. Note that if `protocol` is set to `-1`, it translates to all protocols, all port ranges, and `from_port` and `to_port` values should not be defined.<br> (Required) `from_port` - The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.<br> (Required) `to_port` - The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.<br> (Optional) `ipv4_cidrs` - The IPv4 network ranges to allow, in CIDR notation.<br> (Optional) `ipv6_cidrs` - The IPv6 network ranges to allow, in CIDR notation.<br> (Optional) `prefix_lists` - The prefix list IDs to allow.<br> (Optional) `security_groups` - The source security group IDs to allow.<br> (Optional) `self` - Whether the security group itself will be added as a source to this ingress rule. | <pre>list(object({<br> id = string<br> description = optional(string, "Managed by Terraform.")<br> protocol = string<br> from_port = number<br> to_port = number<br> ipv4_cidrs = optional(list(string), [])<br> ipv6_cidrs = optional(list(string), [])<br> prefix_lists = optional(list(string), [])<br> security_groups = optional(list(string), [])<br> self = optional(bool, false)<br> }))</pre> | `[]` | no |
45
+
| <a name="input_ingress_rules"></a> [ingress\_rules](#input\_ingress\_rules) | (Optional) The configuration for ingress rules of the security group. Each block of `ingress_rules` as defined below.<br> (Required) `id` - The ID of the ingress rule. This value is only used internally within Terraform code.<br> (Optional) `description` - The description of the rule.<br> (Required) `protocol` - The protocol to match. Note that if `protocol` is set to `-1`, it translates to all protocols, all port ranges, and `from_port` and `to_port` values should not be defined.<br> (Required) `from_port` - The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type.<br> (Required) `to_port` - The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.<br> (Optional) `ipv4_cidrs` - The IPv4 network ranges to allow, in CIDR notation.<br> (Optional) `ipv6_cidrs` - The IPv6 network ranges to allow, in CIDR notation.<br> (Optional) `prefix_lists` - The prefix list IDs to allow.<br> (Optional) `security_groups` - The source security group IDs to allow.<br> (Optional) `self` - Whether the security group itself will be added as a source to this ingress rule. | <pre>list(object({<br> id = string<br> description = optional(string, "Managed by Terraform.")<br> protocol = string<br> from_port = number<br> to_port = number<br> ipv4_cidrs = optional(list(string), [])<br> ipv6_cidrs = optional(list(string), [])<br> prefix_lists = optional(list(string), [])<br> security_groups = optional(list(string), [])<br> self = optional(bool, false)<br> }))</pre> | `[]` | no |
45
46
| <aname="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled)| (Optional) Whether to create AWS Resource Tags for the module informations. |`bool`|`true`| no |
46
-
| <aname="input_name_prefix"></a> [name\_prefix](#input\_name\_prefix)| (Optional) Creates a unique name beginning with the specified prefix. Conflicts with `name`. |`string`|`null`| no |
47
47
| <aname="input_resource_group_description"></a> [resource\_group\_description](#input\_resource\_group\_description)| (Optional) The description of Resource Group. |`string`|`"Managed by Terraform."`| no |
48
48
| <aname="input_resource_group_enabled"></a> [resource\_group\_enabled](#input\_resource\_group\_enabled)| (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. |`bool`|`true`| no |
49
49
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. |`string`|`""`| no |
@@ -55,7 +55,10 @@ This module creates following resources.
55
55
| Name | Description |
56
56
|------|-------------|
57
57
| <aname="output_arn"></a> [arn](#output\_arn)| The ARN of the security group. |
58
+
| <aname="output_description"></a> [description](#output\_description)| The description of the security group. |
59
+
| <aname="output_egress_rules"></a> [egress\_rules](#output\_egress\_rules)| The configuration of the security group egress rules. |
58
60
| <aname="output_id"></a> [id](#output\_id)| The ID of the security group. |
61
+
| <aname="output_ingress_rules"></a> [ingress\_rules](#output\_ingress\_rules)| The configuration of the security group ingress rules. |
59
62
| <aname="output_name"></a> [name](#output\_name)| The name of the security group. |
60
63
| <aname="output_owner_id"></a> [owner\_id](#output\_owner\_id)| The ID of the AWS account that owns the security group. |
61
64
| <aname="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id)| The ID of the associated VPC. |
0 commit comments