This repo contains a Module to deploy a Elastic Compute Cloud (EC2) instance on AWS using Terraform.
This Module works well with the following related modules:
- Consumer ELB Module
This module is maintained by the Organization's Infrastructure Team. Email [email protected] for more info.
Version | Description | Security Team Approval? | Approver | Approval Date |
---|---|---|---|---|
v1.5 | Adjusted default instance size | Yes | John Doe | 01/01/2019 |
v1.4 | Initial EC2 Module | No | N/A | N/A |
module "ec2_instances" {
source = "app.terraform.io/<YOURTFEORGNAME>/consumer-ec2-instance/aws"
version = "1.4"
name = "${var.name}-ec2"
instance_count = "${var.number_of_instances}"
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | The name of the EC2 instance | string | - | yes |
instance_count | Number of EC2 instances to create | int | yes |
This module contains no outputs.
Name | Description |
---|---|
id | list containing EC2 instance ids |
Name | Description |
---|---|
instance type | t2.micro |
OS Image | "ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*" |