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
* Update CI workflow versions to latest ([#409](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/issues/409)) ([e48d67f](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/commit/e48d67f339c72bb44a544729fa685e347ea6256e))
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ The following combinations are supported to conditionally create resources:
157
157
- Changes in `ebs_block_device` argument will be ignored. Use [aws_volume_attachment](https://www.terraform.io/docs/providers/aws/r/volume_attachment.html) resource to attach and detach volumes from AWS EC2 instances. See [this example](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/tree/master/examples/volume-attachment).
158
158
- In regards to spot instances, you must grant the `AWSServiceRoleForEC2Spot` service-linked role access to any custom KMS keys, otherwise your spot request and instances will fail with `bad parameters`. You can see more details about why the request failed by using the awscli and `aws ec2 describe-spot-instance-requests`
159
159
160
-
<!--BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK-->
| <aname="input_cpu_options"></a> [cpu\_options](#input\_cpu\_options)| Defines CPU options to apply to the instance at launch time. |`any`|`{}`| no |
204
205
| <aname="input_cpu_threads_per_core"></a> [cpu\_threads\_per\_core](#input\_cpu\_threads\_per\_core)| Sets the number of CPU threads per core for an instance (has no effect unless cpu\_core\_count is also set) |`number`|`null`| no |
205
206
| <aname="input_create"></a> [create](#input\_create)| Whether to create an instance |`bool`|`true`| no |
207
+
| <aname="input_create_eip"></a> [create\_eip](#input\_create\_eip)| Determines whether a public EIP will be created and associated with the instance. |`bool`|`false`| no |
206
208
| <aname="input_create_iam_instance_profile"></a> [create\_iam\_instance\_profile](#input\_create\_iam\_instance\_profile)| Determines whether an IAM instance profile is created or to use an existing IAM instance profile |`bool`|`false`| no |
207
209
| <aname="input_create_spot_instance"></a> [create\_spot\_instance](#input\_create\_spot\_instance)| Depicts if the instance is a spot instance |`bool`|`false`| no |
208
210
| <aname="input_disable_api_stop"></a> [disable\_api\_stop](#input\_disable\_api\_stop)| If true, enables EC2 Instance Stop Protection |`bool`|`null`| no |
209
211
| <aname="input_disable_api_termination"></a> [disable\_api\_termination](#input\_disable\_api\_termination)| If true, enables EC2 Instance Termination Protection |`bool`|`null`| no |
210
212
| <aname="input_ebs_block_device"></a> [ebs\_block\_device](#input\_ebs\_block\_device)| Additional EBS block devices to attach to the instance |`list(any)`|`[]`| no |
211
213
| <aname="input_ebs_optimized"></a> [ebs\_optimized](#input\_ebs\_optimized)| If true, the launched EC2 instance will be EBS-optimized |`bool`|`null`| no |
214
+
| <aname="input_eip_domain"></a> [eip\_domain](#input\_eip\_domain)| Indicates if this EIP is for use in VPC |`string`|`"vpc"`| no |
215
+
| <aname="input_eip_tags"></a> [eip\_tags](#input\_eip\_tags)| A map of additional tags to add to the eip |`map(string)`|`{}`| no |
212
216
| <aname="input_enable_volume_tags"></a> [enable\_volume\_tags](#input\_enable\_volume\_tags)| Whether to enable volume tags (if enabled it conflicts with root\_block\_device tags) |`bool`|`true`| no |
213
217
| <aname="input_enclave_options_enabled"></a> [enclave\_options\_enabled](#input\_enclave\_options\_enabled)| Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`|`bool`|`null`| no |
214
218
| <aname="input_ephemeral_block_device"></a> [ephemeral\_block\_device](#input\_ephemeral\_block\_device)| Customize Ephemeral (also known as Instance Store) volumes on the instance |`list(map(string))`|`[]`| no |
@@ -232,7 +236,7 @@ No modules.
232
236
| <aname="input_key_name"></a> [key\_name](#input\_key\_name)| Key name of the Key Pair to use for the instance; which can be managed using the `aws_key_pair` resource |`string`|`null`| no |
233
237
| <aname="input_launch_template"></a> [launch\_template](#input\_launch\_template)| Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template |`map(string)`|`{}`| no |
234
238
| <aname="input_maintenance_options"></a> [maintenance\_options](#input\_maintenance\_options)| The maintenance options for the instance |`any`|`{}`| no |
235
-
| <aname="input_metadata_options"></a> [metadata\_options](#input\_metadata\_options)| Customize the metadata options of the instance |`map(string)`| <pre>{<br> "http_endpoint": "enabled",<br> "http_put_response_hop_limit": 1,<br> "http_tokens": "optional"<br>}</pre> | no |
239
+
| <aname="input_metadata_options"></a> [metadata\_options](#input\_metadata\_options)| Customize the metadata options of the instance |`map(string)`| <pre>{<br/> "http_endpoint": "enabled",<br/> "http_put_response_hop_limit": 1,<br/> "http_tokens": "optional"<br/>}</pre> | no |
236
240
| <aname="input_monitoring"></a> [monitoring](#input\_monitoring)| If true, the launched EC2 instance will have detailed monitoring enabled |`bool`|`null`| no |
237
241
| <aname="input_name"></a> [name](#input\_name)| Name to be used on EC2 instance created |`string`|`""`| no |
238
242
| <aname="input_network_interface"></a> [network\_interface](#input\_network\_interface)| Customize network interfaces to be attached at instance boot time |`list(map(string))`|`[]`| no |
@@ -286,13 +290,13 @@ No modules.
286
290
| <aname="output_private_dns"></a> [private\_dns](#output\_private\_dns)| The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC |
287
291
| <aname="output_private_ip"></a> [private\_ip](#output\_private\_ip)| The private IP address assigned to the instance |
288
292
| <aname="output_public_dns"></a> [public\_dns](#output\_public\_dns)| The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC |
289
-
| <aname="output_public_ip"></a> [public\_ip](#output\_public\_ip)| The public IP address assigned to the instance, if applicable. NOTE: If you are using an aws\_eip with your instance, you should refer to the EIP's address directly and not use `public_ip` as this field will change after the EIP is attached |
293
+
| <aname="output_public_ip"></a> [public\_ip](#output\_public\_ip)| The public IP address assigned to the instance, if applicable. |
290
294
| <aname="output_root_block_device"></a> [root\_block\_device](#output\_root\_block\_device)| Root block device information |
291
295
| <aname="output_spot_bid_status"></a> [spot\_bid\_status](#output\_spot\_bid\_status)| The current bid status of the Spot Instance Request |
292
296
| <aname="output_spot_instance_id"></a> [spot\_instance\_id](#output\_spot\_instance\_id)| The Instance ID (if any) that is currently fulfilling the Spot Instance request |
293
297
| <aname="output_spot_request_state"></a> [spot\_request\_state](#output\_spot\_request\_state)| The current request state of the Spot Instance Request |
294
298
| <aname="output_tags_all"></a> [tags\_all](#output\_tags\_all)| A map of tags assigned to the resource, including those inherited from the provider default\_tags configuration block |
Copy file name to clipboardExpand all lines: examples/complete/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ $ terraform apply
14
14
15
15
Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources.
16
16
17
-
<!--BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK-->
17
+
<!--BEGIN_TF_DOCS-->
18
18
## Requirements
19
19
20
20
| Name | Version |
@@ -122,4 +122,4 @@ No inputs.
122
122
| <aname="output_spot_instance_availability_zone"></a> [spot\_instance\_availability\_zone](#output\_spot\_instance\_availability\_zone)| The availability zone of the created spot instance |
123
123
| <aname="output_spot_instance_id"></a> [spot\_instance\_id](#output\_spot\_instance\_id)| The Instance ID (if any) that is currently fulfilling the Spot Instance request |
124
124
| <aname="output_spot_request_state"></a> [spot\_request\_state](#output\_spot\_request\_state)| The current request state of the Spot Instance Request |
Copy file name to clipboardExpand all lines: examples/session-manager/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ You will need to have the Session Manager plugin for the AWS CLI installed to ex
24
24
25
25
Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources.
26
26
27
-
<!--BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK-->
27
+
<!--BEGIN_TF_DOCS-->
28
28
## Requirements
29
29
30
30
| Name | Version |
@@ -80,4 +80,4 @@ No inputs.
80
80
| <aname="output_ec2_root_block_device"></a> [ec2\_root\_block\_device](#output\_ec2\_root\_block\_device)| Root block device information |
81
81
| <aname="output_ec2_tags_all"></a> [ec2\_tags\_all](#output\_ec2\_tags\_all)| A map of tags assigned to the resource, including those inherited from the provider default\_tags configuration block |
82
82
| <aname="output_ssm_connect_command"></a> [ssm\_connect\_command](#output\_ssm\_connect\_command)| The AWS CLI command to connect to the instance using Session Manager |
Copy file name to clipboardExpand all lines: examples/volume-attachment/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ $ terraform apply
16
16
17
17
Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources.
18
18
19
-
<!--BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK-->
19
+
<!--BEGIN_TF_DOCS-->
20
20
## Requirements
21
21
22
22
| Name | Version |
@@ -65,4 +65,4 @@ No inputs.
65
65
| <aname="output_ec2_public_dns"></a> [ec2\_public\_dns](#output\_ec2\_public\_dns)| The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC |
66
66
| <aname="output_ec2_public_ip"></a> [ec2\_public\_ip](#output\_ec2\_public\_ip)| The public IP address assigned to the instance, if applicable. NOTE: If you are using an aws\_eip with your instance, you should refer to the EIP's address directly and not use `public_ip` as this field will change after the EIP is attached |
67
67
| <aname="output_ec2_tags_all"></a> [ec2\_tags\_all](#output\_ec2\_tags\_all)| A map of tags assigned to the resource, including those inherited from the provider default\_tags configuration block |
0 commit comments