Skip to content

Commit ae8d028

Browse files
author
Eugene Dementiev
committed
Fix documentation. Rename .tf files according to the proposed standard
1 parent 8f53d04 commit ae8d028

File tree

3 files changed

+49
-50
lines changed

3 files changed

+49
-50
lines changed

ec2.tf renamed to main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
resource "aws_launch_template" "LT" {
2-
# count = var.spot
3-
42
name = "${var.cluster_name}-spot"
53

64
dynamic instance_market_options {

variables.tf

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# required variables
2+
#
3+
variable "cluster_name" {
4+
description = "Name of the ECS cluster"
5+
}
6+
7+
# optional variables
8+
#
9+
10+
variable "ami" {
11+
description = "Name of the AMI image to use"
12+
default = "amzn2-ami-ecs-hvm-*-x86_64-ebs"
13+
}
14+
15+
variable "cpu_unlimited" {
16+
description = "Whether or not enable t2/t3 cpu unlimited (if true, might incur additional charges)"
17+
default = false
18+
}
19+
20+
variable "ec2_key_name" {
21+
description = "EC2 key name to attach to newly created EC2 instances"
22+
default = ""
23+
}
24+
25+
variable "instance_type" {
26+
description = "EC2 instance type"
27+
default = "t3.micro"
28+
}
29+
30+
variable "instances_desired" {
31+
description = "Number of EC2 instances desired"
32+
default = 1
33+
}
34+
35+
variable "security_groups" {
36+
description = "list of security group names"
37+
type = "list"
38+
default = []
39+
}
40+
41+
variable "spot" {
42+
description = "Whether or not use Spot instances. Warning: most likely not suitable for production!"
43+
default = false
44+
}
45+
46+
variable "vpc_name" {
47+
description = "VPC name. If not set, will default to \"default\""
48+
default = ""
49+
}

vars.tf

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)