-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.tf
More file actions
42 lines (34 loc) · 755 Bytes
/
main.tf
File metadata and controls
42 lines (34 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
resource "aws_instance" "scalr" {
ami = var.ami
instance_type = var.instance_type
subnet_id = var.subnet
vpc_security_group_ids = var.secgroup
key_name = var.key
count = var.instance_count
}
variable "region" {
description = "Region"
}
variable "instance_type" {
description = "Instance Type"
}
variable "instance_count" {
description = "Number of instances to deploy"
default = "1"
}
variable "subnet" {
description = "Subnet ID"
}
variable "secgroup" {
description = "AWS Secruity Group"
type = list(string)
}
variable "key" {
description = "AWS Key"
}
variable "vpc_id" {
description = "VPC"
}
variable "ami" {
description = "AMI"
}