generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 291
/
Copy pathproviders.tf
34 lines (31 loc) · 1.16 KB
/
providers.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
# AWS provider for the workspace you're working in (every resource will default to using this, unless otherwise specified)
provider "aws" {
region = "eu-west-2"
assume_role {
role_arn = "arn:aws:iam::${local.environment_management.account_ids[terraform.workspace]}:role/ModernisationPlatformAccess"
}
default_tags { tags = local.tags }
}
# AWS provider for the Modernisation Platform, to get things from there if required
provider "aws" {
alias = "modernisation-platform"
region = "eu-west-2"
default_tags { tags = local.tags }
}
provider "aws" {
alias = "modernisation-platform-eu-west-1"
region = "eu-west-1"
assume_role {
role_arn = "arn:aws:iam::${local.environment_management.account_ids["core-logging-production"]}:role/ModernisationPlatformAccess"
}
default_tags { tags = local.tags }
}
# AWS provider for core-network-services to get the Transit Gateway attachment
provider "aws" {
alias = "core-network-services"
region = "eu-west-2"
assume_role {
role_arn = "arn:aws:iam::${local.environment_management.account_ids["core-network-services-production"]}:role/ModernisationPlatformAccess"
}
default_tags { tags = local.tags }
}