File tree Expand file tree Collapse file tree 3 files changed +49
-50
lines changed Expand file tree Collapse file tree 3 files changed +49
-50
lines changed Original file line number Diff line number Diff line change 11resource "aws_launch_template" "LT" {
2- # count = var.spot
3-
42 name = " ${ var . cluster_name } -spot"
53
64 dynamic instance_market_options {
Original file line number Diff line number Diff line change 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+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments