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
+18-11
Original file line number
Diff line number
Diff line change
@@ -61,20 +61,22 @@ This module has a few dependencies:
61
61
62
62
63
63
64
+
64
65
## Examples
65
66
67
+
66
68
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-aws-ec2/releases).
67
69
68
70
69
71
### Simple Example
70
72
Here is an example of how you can use this module in your inventory structure:
| Name | Description | Type | Default | Required |
@@ -125,6 +131,7 @@ Here is an example of how you can use this module in your inventory structure:
125
131
| instance_count | Number of instances to launch. | number |`1`| no |
126
132
| instance_enabled | Flag to control the instance creation. | bool |`true`| no |
127
133
| instance_initiated_shutdown_behavior | Shutdown behavior for the instance. | string | `` | no |
134
+
| instance_tags | Instance tags. | map |`<map>`| no |
128
135
| instance_type | The type of instance to start. Updates to this field will trigger a stop/start of the EC2 instance. | string | - | yes |
129
136
| ipv6_address_count | Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. | number |`0`| no |
130
137
| ipv6_addresses | List of IPv6 addresses from the range of the subnet to associate with the primary network interface. | list |`<list>`| no |
@@ -161,8 +168,8 @@ Here is an example of how you can use this module in your inventory structure:
161
168
162
169
163
170
164
-
## Testing
165
171
172
+
## Testing
166
173
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
167
174
168
175
You need to run the following command in the testing folder:
Copy file name to clipboardExpand all lines: variables.tf
+6
Original file line number
Diff line number
Diff line change
@@ -250,4 +250,10 @@ variable "cpu_credits" {
250
250
type=string
251
251
default="standard"
252
252
description="The credit option for CPU usage. Can be `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default."
0 commit comments