Skip to content

Commit 4a646ba

Browse files
Merge pull request #1027 from NHSDigital/feature/made14-NRL-1158-fix-awscc-role
[NRL-1158] Assume role for AWSCC provider in account-wide infra for test and prod
2 parents 25ea1f0 + 491213f commit 4a646ba

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

terraform/account-wide-infrastructure/prod/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ provider "aws" {
1313

1414
}
1515

16+
provider "awscc" {
17+
region = local.region
18+
19+
assume_role = {
20+
role_arn = "arn:aws:iam::${var.assume_account}:role/${var.assume_role}"
21+
}
22+
}
23+
1624
terraform {
1725
backend "s3" {
1826
encrypt = false

terraform/account-wide-infrastructure/test/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ provider "aws" {
1313

1414
}
1515

16+
provider "awscc" {
17+
region = local.region
18+
19+
assume_role = {
20+
role_arn = "arn:aws:iam::${var.assume_account}:role/${var.assume_role}"
21+
}
22+
}
23+
1624
terraform {
1725
backend "s3" {
1826
encrypt = false

0 commit comments

Comments
 (0)