forked from turnbullpress/tf_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.tf
65 lines (51 loc) · 1.27 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
64
65
variable "region" {
description = "The AWS region."
}
variable "environment" {
description = "The name of our environment, i.e. development."
}
variable "key_name" {
description = "The AWS key pair to use for resources."
}
variable "public_subnet_ids" {
default = []
description = "The list of public subnets to populate."
}
variable "private_subnet_ids" {
default = []
description = "The list of private subnets to populate."
}
variable "ami" {
default = {
"us-east-1" = "ami-f652979b"
"us-west-1" = "ami-7c4b331c"
}
description = "The AMIs to use for web and app instances."
}
variable "instance_type" {
default = "t2.micro"
description = "The instance type to launch "
}
variable "web_instance_count" {
default = 1
description = "The number of Web instances to create"
}
variable "app_instance_count" {
default = 1
description = "The number of App instances to create"
}
variable "vpc_id" {
description = "The VPC ID to launch in"
}
variable "domain" {
description = "The domain to use for the web service"
}
output "web_elb_address" {
value = "${aws_elb.web.dns_name}"
}
output "web_host_addresses" {
value = ["${aws_instance.web.*.private_ip}"]
}
output "app_host_addresses" {
value = ["${aws_instance.app.*.private_ip}"]
}