Skip to content

Commit

Permalink
Fix Terraform errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Oct 16, 2024
1 parent 1957f4a commit bbc3c25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions modules/postgres-etl/extract/extract_s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand Down
2 changes: 1 addition & 1 deletion modules/postgres-etl/load/load_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions modules/postgres-etl/load/load_s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand Down

0 comments on commit bbc3c25

Please sign in to comment.