Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sukeshreddyg committed Nov 26, 2024
1 parent 4345ffb commit cabd6cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/environments/bootstrap/single-sign-on/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {

# Get MP-specific AWS SSO permission sets
data "terraform_remote_state" "mp-sso-permissions-sets" {
provider = aws.test
backend = "s3"
config = {
acl = "bucket-owner-full-control"
Expand Down
8 changes: 8 additions & 0 deletions terraform/environments/bootstrap/single-sign-on/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ provider "aws" {
}
}

provider "aws" {
region = "eu-west-2"
alias = "test"
assume_role {
role_arn = "arn:aws:iam::${local.environment_management.modernisation_platform_account_id.value}:role/modernisation-account-terraform-state-member-access"
}
}

# AWS provider (modernisation-secrets-read): Required for assuming a role into modernisation platform account to read secrets
provider "aws" {
alias = "modernisation-secrets-read"
Expand Down

0 comments on commit cabd6cd

Please sign in to comment.