-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregions.tf
35 lines (30 loc) · 1.04 KB
/
regions.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
# ================================================================
# Region
#
# Configure new AWS regions and their providers here,
# if you want to place a server on them.
# By default, us-east-2 is configured below.
#
# For each region module usage, you need one provider
# ================================================================
provider "aws" {
# Change these two to desired region
alias = "us-east-2"
region = "us-east-2"
# ---- Common (just copy and paste) ----
access_key = var.aws_access_key
secret_key = var.aws_secret_key
default_tags { tags = local.tags }
# --------------------------------------
}
module "region_us-east-2" {
# Change these to desired values
region = "us-east-2"
azs = ["us-east-2a"]
# Change this to the provider you created for this region
providers = { aws = aws.us-east-2 }
# ------------ Common values (just copy and paste) -------------
source = "./base_region"
ssh_public_key = var.ssh_public_key
# --------------------------------------------------------------
}