-
Notifications
You must be signed in to change notification settings - Fork 2
/
interface.tf
64 lines (52 loc) · 1.28 KB
/
interface.tf
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
variable "region" {
type = string
description = "The AWS region."
default = "us-east-1"
}
variable "environment" {
type = string
description = "The name of our environment, i.e. development."
}
variable "key_name" {
type = string
description = "The AWS key pair to use for resources."
}
variable "public_subnet_ids" {
type = list(string)
default = []
description = "The list of public subnets to populate."
}
variable "private_subnet_ids" {
type = list(string)
default = []
description = "The list of private subnets to populate."
}
variable "ami" {
type = map(string)
default = {
"us-east-1" = "ami-f652979b"
"us-west-1" = "ami-7c4b331c"
"eu-west-1" = "ami-0ae77879"
}
description = "The AMIs to use for API instances."
}
variable "instance_type" {
type = string
default = "t2.micro"
description = "The instance type to launch "
}
variable "vpc_id" {
type = string
description = "The VPC ID to launch in"
}
variable "api_instance_count" {
type = number
default = 5
description = "The number of API instances to launch."
}
output "api_elb_address" {
value = aws_elb.api.dns_name
}
output "api_host_addresses" {
value = aws_instance.api[*].private_ip
}