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
|[aws_iam_policy_document.assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
193
+
|[aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition)| data source |
194
+
|[aws_ssm_parameter.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter)| data source |
189
195
190
196
## Inputs
191
197
192
198
| Name | Description | Type | Default | Required |
| <aname="input_ami"></a> [ami](#input\_ami)| ID of AMI to use for the instance |`string`|`""`| no |
200
+
| <aname="input_ami"></a> [ami](#input\_ami)| ID of AMI to use for the instance |`string`|`null`| no |
201
+
| <aname="input_ami_ssm_parameter"></a> [ami\_ssm\_parameter](#input\_ami\_ssm\_parameter)| SSM parameter name for the AMI ID. For Amazon Linux AMI SSM parameters see [reference](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-public-parameters-ami.html)|`string`|`"/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2"`| no |
195
202
| <aname="input_associate_public_ip_address"></a> [associate\_public\_ip\_address](#input\_associate\_public\_ip\_address)| Whether to associate a public IP address with an instance in a VPC |`bool`|`null`| no |
196
203
| <aname="input_availability_zone"></a> [availability\_zone](#input\_availability\_zone)| AZ to start the instance in |`string`|`null`| no |
197
204
| <aname="input_capacity_reservation_specification"></a> [capacity\_reservation\_specification](#input\_capacity\_reservation\_specification)| Describes an instance's Capacity Reservation targeting option |`any`|`{}`| no |
198
205
| <aname="input_cpu_core_count"></a> [cpu\_core\_count](#input\_cpu\_core\_count)| Sets the number of CPU cores for an instance. |`number`|`null`| no |
199
206
| <aname="input_cpu_credits"></a> [cpu\_credits](#input\_cpu\_credits)| The credit option for CPU usage (unlimited or standard) |`string`|`null`| no |
200
207
| <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 |
201
208
| <aname="input_create"></a> [create](#input\_create)| Whether to create an instance |`bool`|`true`| no |
209
+
| <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 |
202
210
| <aname="input_create_spot_instance"></a> [create\_spot\_instance](#input\_create\_spot\_instance)| Depicts if the instance is a spot instance |`bool`|`false`| no |
203
211
| <aname="input_disable_api_stop"></a> [disable\_api\_stop](#input\_disable\_api\_stop)| If true, enables EC2 Instance Stop Protection. |`bool`|`null`| no |
204
212
| <aname="input_disable_api_termination"></a> [disable\_api\_termination](#input\_disable\_api\_termination)| If true, enables EC2 Instance Termination Protection |`bool`|`null`| no |
@@ -211,6 +219,13 @@ No modules.
211
219
| <aname="input_hibernation"></a> [hibernation](#input\_hibernation)| If true, the launched EC2 instance will support hibernation |`bool`|`null`| no |
212
220
| <aname="input_host_id"></a> [host\_id](#input\_host\_id)| ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host |`string`|`null`| no |
213
221
| <aname="input_iam_instance_profile"></a> [iam\_instance\_profile](#input\_iam\_instance\_profile)| IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile |`string`|`null`| no |
222
+
| <aname="input_iam_role_description"></a> [iam\_role\_description](#input\_iam\_role\_description)| Description of the role |`string`|`null`| no |
223
+
| <aname="input_iam_role_name"></a> [iam\_role\_name](#input\_iam\_role\_name)| Name to use on IAM role created |`string`|`null`| no |
224
+
| <aname="input_iam_role_path"></a> [iam\_role\_path](#input\_iam\_role\_path)| IAM role path |`string`|`null`| no |
225
+
| <aname="input_iam_role_permissions_boundary"></a> [iam\_role\_permissions\_boundary](#input\_iam\_role\_permissions\_boundary)| ARN of the policy that is used to set the permissions boundary for the IAM role |`string`|`null`| no |
226
+
| <aname="input_iam_role_policies"></a> [iam\_role\_policies](#input\_iam\_role\_policies)| Policies attached to the IAM role |`map(string)`|`{}`| no |
227
+
| <aname="input_iam_role_tags"></a> [iam\_role\_tags](#input\_iam\_role\_tags)| A map of additional tags to add to the IAM role/profile created |`map(string)`|`{}`| no |
228
+
| <aname="input_iam_role_use_name_prefix"></a> [iam\_role\_use\_name\_prefix](#input\_iam\_role\_use\_name\_prefix)| Determines whether the IAM role name (`iam_role_name` or `name`) is used as a prefix |`bool`|`true`| no |
214
229
| <aname="input_instance_initiated_shutdown_behavior"></a> [instance\_initiated\_shutdown\_behavior](#input\_instance\_initiated\_shutdown\_behavior)| Shutdown behavior for the instance. Amazon defaults this to stop for EBS-backed instances and terminate for instance-store instances. Cannot be set on instance-store instance |`string`|`null`| no |
215
230
| <aname="input_instance_type"></a> [instance\_type](#input\_instance\_type)| The type of instance to start |`string`|`"t3.micro"`| no |
216
231
| <aname="input_ipv6_address_count"></a> [ipv6\_address\_count](#input\_ipv6\_address\_count)| A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet |`number`|`null`| no |
@@ -251,6 +266,12 @@ No modules.
251
266
|------|-------------|
252
267
| <aname="output_arn"></a> [arn](#output\_arn)| The ARN of the instance |
253
268
| <aname="output_capacity_reservation_specification"></a> [capacity\_reservation\_specification](#output\_capacity\_reservation\_specification)| Capacity reservation specification of the instance |
269
+
| <aname="output_iam_instance_profile_arn"></a> [iam\_instance\_profile\_arn](#output\_iam\_instance\_profile\_arn)| ARN assigned by AWS to the instance profile |
270
+
| <aname="output_iam_instance_profile_id"></a> [iam\_instance\_profile\_id](#output\_iam\_instance\_profile\_id)| Instance profile's ID |
271
+
| <aname="output_iam_instance_profile_unique"></a> [iam\_instance\_profile\_unique](#output\_iam\_instance\_profile\_unique)| Stable and unique string identifying the IAM instance profile |
272
+
| <aname="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn)| The Amazon Resource Name (ARN) specifying the IAM role |
273
+
| <aname="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name)| The name of the IAM role |
274
+
| <aname="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id)| Stable and unique string identifying the IAM role |
254
275
| <aname="output_id"></a> [id](#output\_id)| The ID of the instance |
255
276
| <aname="output_instance_state"></a> [instance\_state](#output\_instance\_state)| The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`|
256
277
| <aname="output_ipv6_addresses"></a> [ipv6\_addresses](#output\_ipv6\_addresses)| The IPv6 address assigned to the instance, if applicable. |
Copy file name to clipboardexpand all lines: examples/complete/README.md
+6
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,12 @@ No inputs.
66
66
|------|-------------|
67
67
| <aname="output_ec2_complete_arn"></a> [ec2\_complete\_arn](#output\_ec2\_complete\_arn)| The ARN of the instance |
68
68
| <aname="output_ec2_complete_capacity_reservation_specification"></a> [ec2\_complete\_capacity\_reservation\_specification](#output\_ec2\_complete\_capacity\_reservation\_specification)| Capacity reservation specification of the instance |
69
+
| <aname="output_ec2_complete_iam_instance_profile_arn"></a> [ec2\_complete\_iam\_instance\_profile\_arn](#output\_ec2\_complete\_iam\_instance\_profile\_arn)| ARN assigned by AWS to the instance profile |
70
+
| <aname="output_ec2_complete_iam_instance_profile_id"></a> [ec2\_complete\_iam\_instance\_profile\_id](#output\_ec2\_complete\_iam\_instance\_profile\_id)| Instance profile's ID |
71
+
| <aname="output_ec2_complete_iam_instance_profile_unique"></a> [ec2\_complete\_iam\_instance\_profile\_unique](#output\_ec2\_complete\_iam\_instance\_profile\_unique)| Stable and unique string identifying the IAM instance profile |
72
+
| <aname="output_ec2_complete_iam_role_arn"></a> [ec2\_complete\_iam\_role\_arn](#output\_ec2\_complete\_iam\_role\_arn)| The Amazon Resource Name (ARN) specifying the IAM role |
73
+
| <aname="output_ec2_complete_iam_role_name"></a> [ec2\_complete\_iam\_role\_name](#output\_ec2\_complete\_iam\_role\_name)| The name of the IAM role |
74
+
| <aname="output_ec2_complete_iam_role_unique_id"></a> [ec2\_complete\_iam\_role\_unique\_id](#output\_ec2\_complete\_iam\_role\_unique\_id)| Stable and unique string identifying the IAM role |
69
75
| <aname="output_ec2_complete_id"></a> [ec2\_complete\_id](#output\_ec2\_complete\_id)| The ID of the instance |
70
76
| <aname="output_ec2_complete_instance_state"></a> [ec2\_complete\_instance\_state](#output\_ec2\_complete\_instance\_state)| The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`|
71
77
| <aname="output_ec2_complete_primary_network_interface_id"></a> [ec2\_complete\_primary\_network\_interface\_id](#output\_ec2\_complete\_primary\_network\_interface\_id)| The ID of the instance's primary network interface |
0 commit comments