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
+45-69
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
<hr>
39
39
40
40
41
-
We eat, drink, sleep and most importantly love **DevOps**. We are working towards stratergies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
41
+
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
42
42
43
43
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
44
44
@@ -68,19 +68,18 @@ This module has a few dependencies:
68
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).
69
69
70
70
71
-
### Simple Example
72
-
Here is an example of how you can use this module in your inventory structure:
71
+
Here is examples of how you can use this module in your inventory structure:
| Name | Description | Type | Default | Required |
111
-
|------|-------------|:----:|:-----:|:-----:|
112
-
| ami | The AMI to use for the instance. | string | - | yes |
113
-
| application | Application (e.g. `cd` or `clouddrove`). | string | `` | no |
114
-
| assign_eip_address | Assign an Elastic IP address to the instance. | bool |`false`| no |
115
-
| associate_public_ip_address | Associate a public IP address with the instance. | bool |`true`| no |
116
-
| attributes | Additional attributes (e.g. `1`). | list |`<list>`| no |
117
-
| availability_zone | Availability Zone the instance is launched in. If not set, will be launched in the first AZ of the region. | list |`<list>`| no |
118
-
| cpu_core_count | Sets the number of CPU cores for an instance. | string | `` | no |
119
-
| cpu_credits | 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. | string |`standard`| no |
120
-
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string |`-`| no |
121
-
| disable_api_termination | If true, enables EC2 Instance Termination Protection. | bool |`false`| no |
122
-
| disk_size | Size of the root volume in gigabytes. | number |`8`| no |
123
-
| dns_enabled | Flag to control the dns_enable. | bool |`false`| no |
124
-
| dns_zone_id | The Zone ID of Route53. | string | `` | no |
125
-
| ebs_block_device | Additional EBS block devices to attach to the instance. | list |`<list>`| no |
126
-
| ebs_device_name | Name of the EBS device to mount. | list(string) |`<list>`| no |
127
-
| ebs_iops | Amount of provisioned IOPS. This must be set with a volume_type of io1. | number |`0`| no |
128
-
| ebs_optimized | If true, the launched EC2 instance will be EBS-optimized. | bool |`false`| no |
129
-
| ebs_volume_enabled | Flag to control the ebs creation. | bool |`false`| no |
130
-
| ebs_volume_size | Size of the EBS volume in gigabytes. | number |`30`| no |
131
-
| ebs_volume_type | The type of EBS volume. Can be standard, gp2 or io1. | string |`gp2`| no |
| ephemeral_block_device | Customize Ephemeral (also known as Instance Store) volumes on the instance. | list |`<list>`| no |
134
-
| host_id | The 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 | `` | no |
135
-
| hostname | DNS records to create. | string | `` | no |
136
-
| iam_instance_profile | The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. | string | `` | no |
137
-
| instance_count | Number of instances to launch. | number |`1`| no |
138
-
| instance_enabled | Flag to control the instance creation. | bool |`true`| no |
139
-
| instance_initiated_shutdown_behavior | Shutdown behavior for the instance. | string | `` | no |
140
-
| instance_profile_enabled | Flag to control the instance profile creation. | bool |`false`| no |
141
-
| instance_tags | Instance tags. | map |`<map>`| no |
142
-
| instance_type | The type of instance to start. Updates to this field will trigger a stop/start of the EC2 instance. | string | - | yes |
143
-
| 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 |
144
-
| ipv6_addresses | List of IPv6 addresses from the range of the subnet to associate with the primary network interface. | list |`<list>`| no |
145
-
| key_name | The key name to use for the instance. | string | `` | no |
146
-
| label_order | Label order, e.g. `name`,`application`. | list |`<list>`| no |
147
-
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string |`[email protected]`| no |
148
-
| monitoring | If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0). | bool |`false`| no |
149
-
| name | Name (e.g. `app` or `cluster`). | string | `` | no |
150
-
| network_interface | Customize network interfaces to be attached at instance boot time. | list(map(string)) |`<list>`| no |
151
-
| placement_group | The Placement Group to start the instance in. | string | `` | no |
152
-
| root_block_device | Customize details about the root block device of the instance. See Block Devices below for details. | list |`<list>`| no |
153
-
| 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 |
154
-
| subnet | VPC Subnet ID the instance is launched in. | string | `` | no |
155
-
| subnet_ids | A list of VPC Subnet IDs to launch in. | list(string) |`<list>`| no |
| tenancy | The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the import-instance command. | string | `` | no |
158
-
| ttl | The TTL of the record to add to the DNS zone to complete certificate validation. | string |`300`| no |
159
-
| type | Type of DNS records to create. | string |`CNAME`| no |
160
-
| user_data | The Base64-encoded user data to provide when launching the instances. | string | `` | no |
161
-
| vpc_security_group_ids_list | A list of security group IDs to associate with. | list(string) |`<list>`| no |
162
138
163
139
## Outputs
164
140
165
141
| Name | Description |
166
142
|------|-------------|
167
143
| arn | The ARN of the instance. |
168
144
| az | The availability zone of the instance. |
169
-
|instance_count| The count of instances. |
170
-
|instance_id| The instance ID. |
171
-
|ipv6_addresses| A list of assigned IPv6 addresses. |
172
-
|key_name| The key name of the instance. |
173
-
|placement_group| The placement group of the instance. |
174
-
|private_ip| Private IP of instance. |
175
-
|public_ip| Public IP of instance (or EIP). |
176
-
|subnet_id| The EC2 subnet ID. |
177
-
|vpc_security_group_ids| The associated security groups in non-default VPC. |
145
+
|instance\_count| The count of instances. |
146
+
|instance\_id| The instance ID. |
147
+
|ipv6\_addresses| A list of assigned IPv6 addresses. |
148
+
|key\_name| The key name of the instance. |
149
+
|placement\_group| The placement group of the instance. |
150
+
|private\_ip| Private IP of instance. |
151
+
|public\_ip| Public IP of instance \(or EIP\). |
152
+
|subnet\_id| The EC2 subnet ID. |
153
+
|vpc\_security\_group\_ids| The associated security groups in non-default VPC. |
178
154
179
155
180
156
@@ -207,4 +183,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
0 commit comments