-
Notifications
You must be signed in to change notification settings - Fork 0
/
project1-prod.tf
48 lines (38 loc) · 1.2 KB
/
project1-prod.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
// Workload Account Project 1 (prod)
module "workload-project1-prod-us-west-2" {
source = "git::https://github.com/infraweave-io/terraform-aws-infraweave-workload.git?ref=v0.0.3"
region = "us-west-2"
providers = {
aws = aws.workload-project1-prod-us-west-2
}
environment = local.environment
central_account_id = local.central_account_id
organization_id = local.organization_id
}
module "workload-project1-prod-eu-central-1" {
source = "git::https://github.com/infraweave-io/terraform-aws-infraweave-workload.git?ref=v0.0.3"
region = "eu-central-1"
providers = {
aws = aws.workload-project1-prod-eu-central-1
}
environment = local.environment
central_account_id = local.central_account_id
organization_id = local.organization_id
}
// Regional providers
provider "aws" {
alias = "workload-project1-prod-us-west-2"
region = "us-west-2"
profile = "project1-prod" # This is the profile name in ~/.aws/config
default_tags {
tags = local.tags
}
}
provider "aws" {
alias = "workload-project1-prod-eu-central-1"
region = "eu-central-1"
profile = "project1-prod" # This is the profile name in ~/.aws/config
default_tags {
tags = local.tags
}
}