Skip to content

Commit

Permalink
(chore) clean up code.
Browse files Browse the repository at this point in the history
  • Loading branch information
denzuko committed Mar 5, 2021
1 parent d451367 commit eb9d8d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module "ecs-windows" {
source = "jjno91/ecs-windows/aws"
version = "0.1.0"
instance_type = "t3.medium"
env = vars.environment
min_size = vars.scaling['min']
max_size = vars.scaling['max']
instance_type = vars.instance_type
tags = vars.aws_labels
min_size = 0
max_size = 1
env = "ustx-dev-lab"
}
15 changes: 9 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
variable "keypair" { default = "${env.AWS_KEYPAIR_NAME}"
variable "instance_type" { default = "t2.micro" }
variable "security_groups" { default = "${env.AWS_SECURITY_GROUPS}" }
variable "monitoring" { default = true }
variable "ami_id" { default = "ami-fa05b392" }
variable "subnet_id" { default = "${env.AWS_SUBNET}" }
variable "environment" { default = "ustx-dev-lab" }
variable "instance_type" { default = "t2.medium" }
variable "region" { default = "${env.AWS_DEFAULT_REGION}" }
variable "monitoring" { default = true }
variable "scaling" {
type = "map"
default = {
"min" = 0
"max" = 1
}
variable "aws_labels" {
type = "map"
default = {
Expand Down

0 comments on commit eb9d8d7

Please sign in to comment.