-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
42 lines (31 loc) · 812 Bytes
/
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
#
# These vars come from a backend.tfvars file (not in this repo)
# Make sure you pass -var-file backend.tfsvars when planning
variable "bucket" {
}
variable "key" {
}
variable "workspace_key_prefix" {
}
# used for state locking
variable "dynamodb_table" {
}
variable "region" {
}
# Aws credentials profile
variable "profile" {
}
variable "external_ip_allow_list" {
}
#
# These vars come from an environment specific tfvars file under tfvars/
variable "aws_profile" {
}
variable "test_results_bucket_name" {
}
locals {
# all of our workspaces are named using the format envrionent_variable-text_aws-region
# ex: st-test-results_us-east-1, pd-test-results_us-east-1
terraform_workspace_components = split("_", terraform.workspace)
aws_region = element(local.terraform_workspace_components, 1)
}