From bbc3c25a7916d2929709503af480f94cd3e3e9c3 Mon Sep 17 00:00:00 2001 From: Andrew Hemming Date: Wed, 16 Oct 2024 15:32:39 +0000 Subject: [PATCH] Fix Terraform errors --- modules/postgres-etl/extract/extract_s3.tf | 6 +++--- modules/postgres-etl/load/load_iam.tf | 2 +- modules/postgres-etl/load/load_s3.tf | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/postgres-etl/extract/extract_s3.tf b/modules/postgres-etl/extract/extract_s3.tf index 8275e58e..26090984 100644 --- a/modules/postgres-etl/extract/extract_s3.tf +++ b/modules/postgres-etl/extract/extract_s3.tf @@ -28,9 +28,9 @@ resource "aws_s3_bucket_policy" "extract" { "Effect" : "Allow", "Principal" : { "AWS" : [ - "arn:aws:iam::473251818902:role/eks-paas-${var.migrator_name}", # Dev - "arn:aws:iam::665505400356:role/eks-paas-${var.migrator_name}", # SBX - "arn:aws:iam::974531504241:role/eks-paas-${var.migrator_name}" # PROD + "arn:aws:iam::473251818902:role/eks-paas-postgres-etl", # Dev + "arn:aws:iam::665505400356:role/eks-paas-postgres-etl", # SBX + "arn:aws:iam::974531504241:role/eks-paas-postgres-etl" # PROD ] }, "Action" : [ diff --git a/modules/postgres-etl/load/load_iam.tf b/modules/postgres-etl/load/load_iam.tf index b5491320..3fb4159e 100644 --- a/modules/postgres-etl/load/load_iam.tf +++ b/modules/postgres-etl/load/load_iam.tf @@ -219,7 +219,7 @@ resource "aws_iam_role" "k8s_postgres_etl" { { Effect = "Allow", Principal = { - AWS = "arn:aws:iam::665505400356:role/eks-paas-${var.migrator_name}" + AWS = "arn:aws:iam::665505400356:role/eks-paas-postgres-etl" }, Action = "sts:AssumeRole" } diff --git a/modules/postgres-etl/load/load_s3.tf b/modules/postgres-etl/load/load_s3.tf index 4418765f..3a2d475d 100644 --- a/modules/postgres-etl/load/load_s3.tf +++ b/modules/postgres-etl/load/load_s3.tf @@ -18,9 +18,9 @@ resource "aws_s3_bucket_policy" "load" { "Effect" : "Allow", "Principal" : { "AWS" : [ - "arn:aws:iam::473251818902:role/eks-paas-${var.migrator_name}", # Dev - "arn:aws:iam::665505400356:role/eks-paas-${var.migrator_name}", # SBX - "arn:aws:iam::974531504241:role/eks-paas-${var.migrator_name}" # PROD + "arn:aws:iam::473251818902:role/eks-paas-postgres-etl", # Dev + "arn:aws:iam::665505400356:role/eks-paas-postgres-etl", # SBX + "arn:aws:iam::974531504241:role/eks-paas-postgres-etl" # PROD ] }, "Action" : [