-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
68 lines (55 loc) · 1.59 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
# Variables.tf declares has the default variables that are shared by all environments
# $var.region, $var.domain, $var.tf_s3_bucket
# Read credentials from environment variables
#$ export AWS_ACCESS_KEY_ID="anaccesskey"
#$ export AWS_SECRET_ACCESS_KEY="asecretkey"
#$ export AWS_DEFAULT_REGION="us-west-2"
#$ terraform plan
provider "aws" {
region = "${var.region}"
version = "~> 2.41.0"
}
provider "aws" {
region = "us-east-1"
alias = "us-east-1"
}
provider "aws" {
region = "us-west-1"
alias = "us-west-1"
}
data "terraform_remote_state" "master_state" {
backend = "s3"
config {
bucket = "${var.tf_s3_bucket}"
region = "${var.region}"
key = "${var.master_state_file}"
}
}
variable "aws_profile" {
description = "Which AWS profile is should be used? Defaults to \"default\""
default = "default"
}
variable "region" {
default = "us-east-1"
}
# This should be changed to reflect the service / stack defined by this repo
# for example replace "ref" with "cms", "slackbot", etc
variable "stack" {
default = "hc"
}
variable "tf_s3_bucket" {
description = "S3 bucket Terraform can use for state"
default = "asics-devops-state-us-east-1"
}
variable "master_state_file" {
default = "terraform-healthcheck-reference/state/base/base.tfstate"
}
variable "prod_state_file" {
default = "terraform-healthcheck-reference/state/production/production.tfstate"
}
variable "staging_state_file" {
default = "terraform-healthcheck-reference/state/staging/staging.tfstate"
}
variable "dev_state_file" {
default = "terraform-healthcheck-reference/state/dev/dev.tfstate"
}