forked from vmware-archive/terraforming-aws
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
85 lines (67 loc) · 1.51 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
77
78
79
80
81
82
83
84
85
variable "env_name" {}
variable "dns_suffix" {}
variable "access_key" {}
variable "secret_key" {}
variable "region" {}
variable "availability_zones" {
type = "list"
}
variable "vpc_cidr" {
type = "string"
default = "10.0.0.0/16"
}
variable "hosted_zone" {
default = ""
}
/**************
* Ops Manager *
***************/
variable "ops_manager_ami" {
default = ""
}
variable "optional_ops_manager_ami" {
default = ""
}
variable "ops_manager_instance_type" {
default = "r4.large"
}
variable "ops_manager_private" {
default = false
description = "If true, the Ops Manager will be colocated with the BOSH director on the infrastructure subnet instead of on the public subnet"
}
variable "ops_manager_vm" {
default = true
}
variable "optional_ops_manager" {
default = false
}
/******
* RDS *
*******/
variable "rds_db_username" {
default = "administrator"
}
variable "rds_instance_class" {
default = "db.m4.large"
}
variable "rds_instance_count" {
type = "string"
default = 1
}
/********
* Tags *
*********/
variable "tags" {
type = "map"
default = {}
description = "Key/value tags to assign to all AWS resources"
}
locals {
ops_man_subnet_id = "${var.ops_manager_private ? element(module.infra.infrastructure_subnet_ids, 0) : element(module.infra.public_subnet_ids, 0)}"
bucket_suffix = "${random_integer.bucket.result}"
default_tags = {
Environment = "${var.env_name}"
Application = "Control Plane"
}
actual_tags = "${merge(var.tags, local.default_tags)}"
}