Skip to content

Commit

Permalink
Update terraform-variables.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjogsharma authored Dec 9, 2019
1 parent b6fe103 commit 35b4902
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terraform-aws/terraform-variables.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Here, we will authour three config files, variables.tf, provider.tf and instance
variable "instance_count" {
default = 2
}
variable "ec2_type" {
default = "t2.micro"
}
```

We thus specified that we want to launch our instances in us-east-2 by default and that we want to launch two instances.
Expand All @@ -24,7 +28,7 @@ We thus specified that we want to launch our instances in us-east-2 by default a
resource "aws_instance" "example" {
ami = "ami-0c64dd618a49aeee8"
instance_type = "t2.micro"
instance_type = var.ec2_type
count = var.instance_count
tags = {
Expand Down

0 comments on commit 35b4902

Please sign in to comment.