-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
76 lines (58 loc) · 1.29 KB
/
variables.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
66
67
68
69
70
71
72
73
74
75
76
# Region
variable "region" {
description = "The AWS region to create things in"
default = "us-west-2"
}
# Instances
variable "total_instances" {
default = 3
}
# Ubuntu 16.04 LTS
variable "instance_ami" {
description = "Amazon linux AMI"
default = "ami-db710fa3"
}
variable "instance_prefix" {
description = "Name to instance"
default = "mongo-"
}
variable "instance_type" {
description = "Instance AWS type"
default = "t2.micro"
}
variable "instance_user" {
description = "Instance user to use into instance"
default = "ubuntu"
}
# Key Pair Name
variable "key_name" {
description = "Value to key pair created in AWS"
default = "andrescolonia_key"
}
variable "private_key" {
description = "Key to connect into instance to run script"
default = "/Users/andres/.ssh/id_rsa"
}
# Vpc
variable "vpc_id" {
description = "Mongo VPC"
default = "vpc-e62a249f"
}
# Subnet
variable "subnet_ids" {
type = "map"
default = {
"us-west-1" = "subnet-e4ea899d"
"us-west-2" = "subnet-6a8d0121"
"us-west-3" = "subnet-fdacd4a7"
}
}
# Security Group
variable "cidr_blocks" {
default = "0.0.0.0/0"
description = "CIDR for sg"
}
variable "sg_name" {
default = "mongo security group"
description = "Security Group to MongoDB"
}