diff --git a/terraform/account/credentials.tf b/terraform/account/credentials.tf index 38d406c906..9c02b3d19b 100644 --- a/terraform/account/credentials.tf +++ b/terraform/account/credentials.tf @@ -25,6 +25,15 @@ provider "aws" { } } +provider "aws" { + alias = "eu_west_2" + region = "eu-west-2" + assume_role { + role_arn = "arn:aws:iam::${local.account_id}:role/${var.default_role}" + session_name = "terraform-session" + } +} + provider "aws" { alias = "us_east_1" region = "us-east-1" diff --git a/terraform/account/put_secrets.tf b/terraform/account/put_secrets.tf index d3b431cc26..d44de2b04b 100644 --- a/terraform/account/put_secrets.tf +++ b/terraform/account/put_secrets.tf @@ -2,15 +2,6 @@ resource "aws_kms_key" "secrets_encryption_key" { enable_key_rotation = true } -resource "aws_kms_key" "rds_snapshot_cross_region_encryption_key" { - enable_key_rotation = true -} - -resource "aws_kms_alias" "rds_snapshot_cross_region_encryption" { - target_key_id = aws_kms_key.rds_snapshot_cross_region_encryption_key.key_id - name = "alias/rds-snapshot-cross-region-encryption-key" -} - # common resource "aws_secretsmanager_secret" "opg_lpa_common_admin_accounts" { name = "${local.account_name}/opg_lpa_common_admin_accounts"