-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
46 lines (46 loc) · 1.09 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
#Define AWS Region
variable "region" {
description = "Infrastructure region"
type = string
default = "us-east-2"
}
#Define VPC Address Space
variable "vpc_address_space" {
type = map(any)
default = {
Dev = "10.8.0.0/23"
Test = "10.9.0.0/22"
Prod = "10.10.0.0/20"
}
}
variable "provider_env_roles" {
type = map(any)
default = {
"Dev" = "arn:aws:iam::851242103510:role/RoleToBeAssumed"
"Test" = "arn:aws:iam::597445274477:role/RoleToBeAssumed"
"Prod" = "arn:aws:iam::501461340471:role/RoleToBeAssumed"
}
}
variable "subnet_address_space" {
type = map(any)
default = {
Dev = ["10.8.0.0/24"]
Test = ["10.9.0.0/24", "10.9.1.0/24"]
Prod = ["10.10.0.0/24", "10.10.1.0/24", "10.10.2.0/24"]
}
}
locals {
env = terraform.workspace
}
#Define IAM User Access Key
variable "access_key" {
description = "The access_key that belongs to the IAM user"
type = string
sensitive = true
}
#Define IAM User Secret Key
variable "secret_key" {
description = "The secret_key that belongs to the IAM user"
type = string
sensitive = true
}