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
| <aname="input_availability_zone"></a> [availability\_zone](#input\_availability\_zone)| Availability Zone the instance is launched in. If not set, will be launched in the first AZ of the region |`string`|`""`| no |
259
259
| <aname="input_comparison_operator"></a> [comparison\_operator](#input\_comparison\_operator)| The arithmetic operation to use when comparing the specified Statistic and Threshold. Possible values are: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. |`string`|`"GreaterThanOrEqualToThreshold"`| no |
260
260
| <aname="input_context"></a> [context](#input\_context)| Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. |`any`| <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_key_case": null,<br> "label_order": [],<br> "label_value_case": null,<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
261
-
| <aname="input_create_default_security_group"></a> [create\_default\_security\_group](#input\_create\_default\_security\_group)| Create default Security Group with only Egress traffic allowed |`bool`|`true`| no |
262
261
| <aname="input_default_alarm_action"></a> [default\_alarm\_action](#input\_default\_alarm\_action)| Default alarm action |`string`|`"action/actions/AWS_EC2.InstanceId.Reboot/1.0"`| no |
263
262
| <aname="input_delete_on_termination"></a> [delete\_on\_termination](#input\_delete\_on\_termination)| Whether the volume should be destroyed on instance termination |`bool`|`true`| no |
264
263
| <aname="input_delimiter"></a> [delimiter](#input\_delimiter)| Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
@@ -300,8 +299,11 @@ Available targets:
300
299
| <aname="input_root_iops"></a> [root\_iops](#input\_root\_iops)| Amount of provisioned IOPS. This must be set if root\_volume\_type is set to `io1`|`number`|`0`| no |
301
300
| <aname="input_root_volume_size"></a> [root\_volume\_size](#input\_root\_volume\_size)| Size of the root volume in gigabytes |`number`|`10`| no |
302
301
| <aname="input_root_volume_type"></a> [root\_volume\_type](#input\_root\_volume\_type)| Type of root volume. Can be standard, gp2 or io1 |`string`|`"gp2"`| no |
303
-
| <aname="input_security_group_rules"></a> [security\_group\_rules](#input\_security\_group\_rules)| A list of maps of Security Group rules. <br>The values of map is fully complated with `aws_security_group_rule` resource. <br>To get more info see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule . |`list(any)`| <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "from_port": 0,<br> "protocol": "-1",<br> "to_port": 65535,<br> "type": "egress"<br> }<br>]</pre> | no |
304
-
| <aname="input_security_groups"></a> [security\_groups](#input\_security\_groups)| List of Security Group IDs allowed to connect to the instance |`list(string)`|`[]`| no |
302
+
| <aname="input_security_group_description"></a> [security\_group\_description](#input\_security\_group\_description)| The Security Group description. |`string`|`"EC2 Security Group"`| no |
303
+
| <aname="input_security_group_enabled"></a> [security\_group\_enabled](#input\_security\_group\_enabled)| Whether to create default Security Group for EC2. |`bool`|`true`| no |
304
+
| <aname="input_security_group_rules"></a> [security\_group\_rules](#input\_security\_group\_rules)| A list of maps of Security Group rules. <br>The values of map is fully complated with `aws_security_group_rule` resource. <br>To get more info see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule . |`list(any)`| <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "description": "Allow all outbound traffic",<br> "from_port": 0,<br> "protocol": "-1",<br> "to_port": 65535,<br> "type": "egress"<br> }<br>]</pre> | no |
305
+
| <aname="input_security_group_use_name_prefix"></a> [security\_group\_use\_name\_prefix](#input\_security\_group\_use\_name\_prefix)| Whether to create a default Security Group with unique name beginning with the normalized prefix. |`bool`|`false`| no |
306
+
| <aname="input_security_groups"></a> [security\_groups](#input\_security\_groups)| A list of Security Group IDs to associate with EC2 instance. |`list(string)`|`[]`| no |
305
307
| <aname="input_source_dest_check"></a> [source\_dest\_check](#input\_source\_dest\_check)| Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs |`bool`|`true`| no |
306
308
| <aname="input_ssh_key_pair"></a> [ssh\_key\_pair](#input\_ssh\_key\_pair)| SSH key pair to be provisioned on the instance |`string`| n/a | yes |
307
309
| <aname="input_stage"></a> [stage](#input\_stage)| Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
@@ -330,7 +332,10 @@ Available targets:
330
332
| <aname="output_public_dns"></a> [public\_dns](#output\_public\_dns)| Public DNS of instance (or DNS of EIP) |
331
333
| <aname="output_public_ip"></a> [public\_ip](#output\_public\_ip)| Public IP of instance (or EIP) |
332
334
| <aname="output_role"></a> [role](#output\_role)| Name of AWS IAM Role associated with the instance |
335
+
| <aname="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn)| EC2 instance Security Group ARN |
336
+
| <aname="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id)| EC2 instance Security Group ID |
333
337
| <aname="output_security_group_ids"></a> [security\_group\_ids](#output\_security\_group\_ids)| IDs on the AWS Security Groups associated with the instance |
338
+
| <aname="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name)| EC2 instance Security Group name |
334
339
| <aname="output_ssh_key_pair"></a> [ssh\_key\_pair](#output\_ssh\_key\_pair)| Name of the SSH key pair provisioned on the instance |
335
340
<!-- markdownlint-restore -->
336
341
@@ -490,7 +495,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
| <aname="input_availability_zone"></a> [availability\_zone](#input\_availability\_zone)| Availability Zone the instance is launched in. If not set, will be launched in the first AZ of the region |`string`|`""`| no |
62
62
| <aname="input_comparison_operator"></a> [comparison\_operator](#input\_comparison\_operator)| The arithmetic operation to use when comparing the specified Statistic and Threshold. Possible values are: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold. |`string`|`"GreaterThanOrEqualToThreshold"`| no |
63
63
| <aname="input_context"></a> [context](#input\_context)| Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. |`any`| <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_key_case": null,<br> "label_order": [],<br> "label_value_case": null,<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
64
-
| <aname="input_create_default_security_group"></a> [create\_default\_security\_group](#input\_create\_default\_security\_group)| Create default Security Group with only Egress traffic allowed |`bool`|`true`| no |
65
64
| <aname="input_default_alarm_action"></a> [default\_alarm\_action](#input\_default\_alarm\_action)| Default alarm action |`string`|`"action/actions/AWS_EC2.InstanceId.Reboot/1.0"`| no |
66
65
| <aname="input_delete_on_termination"></a> [delete\_on\_termination](#input\_delete\_on\_termination)| Whether the volume should be destroyed on instance termination |`bool`|`true`| no |
67
66
| <aname="input_delimiter"></a> [delimiter](#input\_delimiter)| Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
@@ -103,8 +102,11 @@
103
102
| <aname="input_root_iops"></a> [root\_iops](#input\_root\_iops)| Amount of provisioned IOPS. This must be set if root\_volume\_type is set to `io1`|`number`|`0`| no |
104
103
| <aname="input_root_volume_size"></a> [root\_volume\_size](#input\_root\_volume\_size)| Size of the root volume in gigabytes |`number`|`10`| no |
105
104
| <aname="input_root_volume_type"></a> [root\_volume\_type](#input\_root\_volume\_type)| Type of root volume. Can be standard, gp2 or io1 |`string`|`"gp2"`| no |
106
-
| <aname="input_security_group_rules"></a> [security\_group\_rules](#input\_security\_group\_rules)| A list of maps of Security Group rules. <br>The values of map is fully complated with `aws_security_group_rule` resource. <br>To get more info see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule . |`list(any)`| <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "from_port": 0,<br> "protocol": "-1",<br> "to_port": 65535,<br> "type": "egress"<br> }<br>]</pre> | no |
107
-
| <aname="input_security_groups"></a> [security\_groups](#input\_security\_groups)| List of Security Group IDs allowed to connect to the instance |`list(string)`|`[]`| no |
105
+
| <aname="input_security_group_description"></a> [security\_group\_description](#input\_security\_group\_description)| The Security Group description. |`string`|`"EC2 Security Group"`| no |
106
+
| <aname="input_security_group_enabled"></a> [security\_group\_enabled](#input\_security\_group\_enabled)| Whether to create default Security Group for EC2. |`bool`|`true`| no |
107
+
| <aname="input_security_group_rules"></a> [security\_group\_rules](#input\_security\_group\_rules)| A list of maps of Security Group rules. <br>The values of map is fully complated with `aws_security_group_rule` resource. <br>To get more info see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule . |`list(any)`| <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "description": "Allow all outbound traffic",<br> "from_port": 0,<br> "protocol": "-1",<br> "to_port": 65535,<br> "type": "egress"<br> }<br>]</pre> | no |
108
+
| <aname="input_security_group_use_name_prefix"></a> [security\_group\_use\_name\_prefix](#input\_security\_group\_use\_name\_prefix)| Whether to create a default Security Group with unique name beginning with the normalized prefix. |`bool`|`false`| no |
109
+
| <aname="input_security_groups"></a> [security\_groups](#input\_security\_groups)| A list of Security Group IDs to associate with EC2 instance. |`list(string)`|`[]`| no |
108
110
| <aname="input_source_dest_check"></a> [source\_dest\_check](#input\_source\_dest\_check)| Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs |`bool`|`true`| no |
109
111
| <aname="input_ssh_key_pair"></a> [ssh\_key\_pair](#input\_ssh\_key\_pair)| SSH key pair to be provisioned on the instance |`string`| n/a | yes |
110
112
| <aname="input_stage"></a> [stage](#input\_stage)| Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
@@ -133,6 +135,9 @@
133
135
| <aname="output_public_dns"></a> [public\_dns](#output\_public\_dns)| Public DNS of instance (or DNS of EIP) |
134
136
| <aname="output_public_ip"></a> [public\_ip](#output\_public\_ip)| Public IP of instance (or EIP) |
135
137
| <aname="output_role"></a> [role](#output\_role)| Name of AWS IAM Role associated with the instance |
138
+
| <aname="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn)| EC2 instance Security Group ARN |
139
+
| <aname="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id)| EC2 instance Security Group ID |
136
140
| <aname="output_security_group_ids"></a> [security\_group\_ids](#output\_security\_group\_ids)| IDs on the AWS Security Groups associated with the instance |
141
+
| <aname="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name)| EC2 instance Security Group name |
137
142
| <aname="output_ssh_key_pair"></a> [ssh\_key\_pair](#output\_ssh\_key\_pair)| Name of the SSH key pair provisioned on the instance |
0 commit comments