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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ data "aws_ami" "ubuntu-xenial" {
84
84
*`network_interface` can't be specified together with `associate_public_ip_address`, which makes `network_interface`
85
85
not configurable using this module at the moment
86
86
* 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).
87
+
* One of `subnet_id` or `subnet_ids` is required. If both are provided, the value of `subnet_id` is prepended to the value of `subnet_ids`.
87
88
88
89
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
89
90
## Inputs
@@ -111,7 +112,8 @@ data "aws_ami" "ubuntu-xenial" {
111
112
| private\_ip | Private IP address to associate with the instance in a VPC | string |`""`| no |
112
113
| root\_block\_device | Customize details about the root block device of the instance. See Block Devices below for details | list |`<list>`| no |
113
114
| 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. | string |`"true"`| no |
114
-
| subnet\_id | The VPC Subnet ID to launch in | string | n/a | yes |
115
+
| subnet\_id*| The VPC Subnet ID to launch in | string |`""`| no |
116
+
| subnet\_ids*| A list of VPC Subnet IDs to launch in | string |`<list>`| no |
115
117
| tags | A mapping of tags to assign to the resource | map |`<map>`| no |
116
118
| tenancy | The tenancy of the instance (if the instance is running in a VPC). Available values: default, dedicated, host. | string |`"default"`| no |
117
119
| user\_data | The user data to provide when launching the instance | string |`""`| no |
0 commit comments