-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
65 lines (53 loc) · 1.66 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
##################################################################################
# VARIABLES
##################################################################################
variable "devops_timestamp" {}
variable "devops_engineer" {}
variable "devops_contact" {}
variable "devops_listset" {}
variable "devops_mapset" {}
variable "filebased_parameters" {}
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "private_keypair_file" {}
variable "private_keypair_name" {}
variable "region" {
type = string
default = "us-east-1"
}
variable network_address_space {
type = map(string)
}
variable "instance_size" {
type = map(string)
}
variable "subnet_count" {
type = map(number)
}
variable "instance_count" {
type = map(number)
}
variable "corporate_title" {}
variable "corporate_image" {}
variable "billing_code_tag" {}
variable "bucket_name_prefix" {}
variable "zone_id" {}
variable "domain_name" {}
variable "route53_record" {}
##################################################################################
# LOCALS
##################################################################################
## randint = "${format("%05d",floor(${random_integer.rand.result}))}"
## s3_bucket_name = "${var.bucket_name_prefix}-${local.env_name}-${random_integer.rand.result}"
locals {
domain_name = var.domain_name
route53_record = var.route53_record
env_name = lower(terraform.workspace)
corporate_title = var.corporate_title
corporate_image = var.corporate_image
common_tags = {
BillingCode = var.billing_code_tag
Environment = local.env_name
}
s3_bucket_name = "${var.bucket_name_prefix}-${local.env_name}-${local.env_index}"
}