Skip to content

Commit

Permalink
Introduce instance type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kooskoos20 committed May 12, 2022
1 parent 154b7ad commit 3a50119
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion terraform-tfvars/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ data "aws_ami" "ubuntu" {
}
}

variable "instance_type" {
type = string
default = "t2.micro"
description = "EC2 instance type"
}

//spinning up billing server
resource "aws_instance" "billing_server" {
ami = data.aws_ami.ubuntu.id
instance_type = "t2.micro"
instance_type = var.instance_type
tags = {
"service" = "billing"
}
Expand Down

0 comments on commit 3a50119

Please sign in to comment.