diff --git a/terraform/environments/performance-hub/database.tf b/terraform/environments/performance-hub/database.tf index 3cf0bc1f074..60cbe55ef78 100644 --- a/terraform/environments/performance-hub/database.tf +++ b/terraform/environments/performance-hub/database.tf @@ -313,7 +313,7 @@ data "aws_iam_policy_document" "rds-kms" { principals { type = "AWS" - identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:root", "arn:aws:iam::${data.aws_caller_identity.current.account_id}:user/cicd-member-user"] + identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"] } } } diff --git a/terraform/environments/performance-hub/iam.tf b/terraform/environments/performance-hub/iam.tf new file mode 100644 index 00000000000..9315aeb400b --- /dev/null +++ b/terraform/environments/performance-hub/iam.tf @@ -0,0 +1,95 @@ +#------------------------------------------------------------------------------ +# IAM for S3 data movement operations to and from the Analytical Platform (AP) +# +#------------------------------------------------------------------------------ + + +# S3 bucket access policy for AP landing bucket (data pushed from +# Performance Hub to a bucket in the AP account - hence hard-coded bucket name) +# Legacy account was arn:aws:iam::677012035582:policy/read-ap-ppas +resource "aws_iam_policy" "s3_ap_landing_policy" { + name = "${local.application_name}-s3-ap-landing-policy" + policy = <