-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
103 lines (82 loc) · 2.15 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# =============================================
# General
# =============================================
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
locals {
region = data.aws_region.current.name
account_id = data.aws_caller_identity.current.account_id
common_tags = merge({
env = var.env
terraform_managed = "true"
terraform_workspace = terraform.workspace
Name = var.cluster_name
}, var.tags
)
}
variable "tags" {
description = "User-Defined tags"
type = map(string)
default = {}
}
variable "env" {
description = "environment to tag resources with"
type = string
default = "default"
}
variable "route53_zone_name" {
description = "Zone name for Route53 zone to add URL to"
type = string
}
# Networking
variable "vpc_id" {
description = "VPC ID where resources will be created"
type = string
}
variable "database_subnets" {
description = "List of subnet IDs where database resides"
type = list(string)
}
variable "public_subnets" {
description = "List of public subnet IDs"
type = list(string)
}
variable "private_subnets" {
description = "List of private subnet IDs"
type = list(string)
}
variable "cidr_block" {
description = "VPC IP block"
type = string
}
# DB
variable "db_instance_type" {
description = "Instance type used by the Aurora Postgres database"
type = "string"
default = "db.t3.medium"
}
variable "db_username" {
description = "Username of DB user which AWX will use"
default = "awx"
}
# =============================================
# AWX Specific
# =============================================
variable "cluster_name" {
type = string
default = "awx"
}
variable "alb_ssl_certificate_arn" {
description = "ARN for an SSL certificate stored in Certificate Manager to be used with AWX's ALB"
type = string
}
variable "awx_secret_key" {
description = "secret key for awx, see docs"
default = "awxsecret"
}
variable "awx_admin_username" {
default = "admin"
}
variable "awx_admin_password" {
default = "awxpassword"
}